共用方式為


CommandLineActivationOperation.GetDeferral 方法

定義

取得這個作業的延遲物件。

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

傳回

延遲物件,您的程式碼會在完成處理啟用時用來發出訊號。

範例

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

適用於