System.ComponentModel.AsyncOperation.CreateOperation C# (CSharp) Method

CreateOperation() static private method

Only for use by AsyncOperationManager to create new AsyncOperation objects
static private CreateOperation ( object userSuppliedState, SynchronizationContext syncContext ) : AsyncOperation
userSuppliedState object
syncContext System.Threading.SynchronizationContext
return AsyncOperation
        internal static AsyncOperation CreateOperation(object userSuppliedState, SynchronizationContext syncContext)
        {
            AsyncOperation newOp = new AsyncOperation(userSuppliedState, syncContext); 
            return newOp;
        }
    }

Usage Example

Ejemplo n.º 1
0
 public static AsyncOperation CreateOperation(object userSuppliedState)
 {
     return(AsyncOperation.CreateOperation(userSuppliedState, SynchronizationContext));
 }