CommandLineActivationOperation.GetDeferral 方法

定义

获取此操作的延迟对象。

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

返回

一个 Deferral 对象,代码使用该对象在完成激活处理后发出信号。

示例

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

适用于