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 实例。

适用于