共用方式為


AnnouncementClient.BeginAnnounceOffline 方法

定義

造成離線公告訊息 (Bye) 與指定的端點探索中繼資料和使用者定義的狀態以非同步方式一併傳送。 指定的 AsyncCallback 會在作業完成時呼叫。

public:
 IAsyncResult ^ BeginAnnounceOffline(System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ discoveryMetadata, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginAnnounceOffline (System.ServiceModel.Discovery.EndpointDiscoveryMetadata discoveryMetadata, AsyncCallback callback, object state);
member this.BeginAnnounceOffline : System.ServiceModel.Discovery.EndpointDiscoveryMetadata * AsyncCallback * obj -> IAsyncResult
Public Function BeginAnnounceOffline (discoveryMetadata As EndpointDiscoveryMetadata, callback As AsyncCallback, state As Object) As IAsyncResult

參數

discoveryMetadata
EndpointDiscoveryMetadata

端點探索中繼資料。

state
Object

使用者定義的狀態資料。

傳回

IAsyncResult 執行個體。

適用於