共用方式為


AnnouncementClient.BeginAnnounceOnline 方法

定義

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

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

參數

discoveryMetadata
EndpointDiscoveryMetadata

端點探索中繼資料。

state
Object

使用者定義的狀態資料。

傳回

IAsyncResult 執行個體。

適用於