ControlChannelTrigger.WaitForPushEnabled 方法

定義

允許代理程式更新系統已建立連線,而且系統應該完成控制通道觸發程式的內部設定。

注意

Windows Phone不支援 ControlChannelTrigger 類別。

public:
 virtual ControlChannelTriggerStatus WaitForPushEnabled() = WaitForPushEnabled;
ControlChannelTriggerStatus WaitForPushEnabled();
public ControlChannelTriggerStatus WaitForPushEnabled();
function waitForPushEnabled()
Public Function WaitForPushEnabled () As ControlChannelTriggerStatus

傳回

值,指出系統是否能夠完成 ControlChannelTrigger 物件的設定。

備註

應用程式連線之後,它必須呼叫 WaitForPushEnabled 方法,讓系統完成控制通道觸發程式的內部設定。 如果應用程式嘗試使用網路觸發程式機制而不呼叫 WaitForPushEnabled 方法,它就會發生例外狀況。

只有在建立傳輸連線之後,才會呼叫 WaitForPushEnabled 方法。

適用於