CommandLineActivationOperation.GetDeferral Method

Definition

Gets a deferral object for this operation.

public:
 virtual Deferral ^ GetDeferral() = GetDeferral;
Deferral GetDeferral();
public Deferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As Deferral

Returns

A Deferral object that your code uses to signal when it has finished processing the activation.

Examples

// The deferral is only needed if your processing requires async operations
using (Deferral deferral = operation.GetDeferral())
{
	var parsedCommands =
				ParseUntrustedArgsAsync(activationPath, cmdLineString);
    ...
}

Applies to