共用方式為


IVpnChannelStatics.ProcessEventAsync(Object, Object) 方法

定義

VPN 外掛程式必須一律在其背景工作 Run() 方法中呼叫此函式。

public:
 void ProcessEventAsync(Platform::Object ^ thirdPartyPlugIn, Platform::Object ^ event);
void ProcessEventAsync(IInspectable const& thirdPartyPlugIn, IInspectable const& event);
public void ProcessEventAsync(object thirdPartyPlugIn, object event);
function processEventAsync(thirdPartyPlugIn, event)
Public Sub ProcessEventAsync (thirdPartyPlugIn As Object, event As Object)

參數

thirdPartyPlugIn
Object

Platform::Object

IInspectable

要處理的外掛程式。

event
Object

Platform::Object

IInspectable

從背景工作傳遞至應用程式的事件物件,Run 方法參數。 呼叫 ProcessEventAsync 的應用程式程式代碼 會將這個物件視為從背景工作傳遞至事件處理程式碼的不透明 Blob。 (在事件處理程序代碼中,將會適當地瞭解並剖析物件。

Windows 需求

應用程式功能
networkingVpnProvider

適用於