MetadataExchangeClient.GetMetadataAsync 方法

定义

返回已设置的异步元数据。

重载

GetMetadataAsync()

返回已设置的异步元数据。

GetMetadataAsync(EndpointAddress)

从指定的地址返回已设置的异步元数据。

GetMetadataAsync(EndpointAddress, Uri)

从指定的地址和指定的路由返回已设置的异步元数据。

GetMetadataAsync(Uri, MetadataExchangeClientMode)

使用指定的下载模式从指定的地址返回已设置的异步元数据

GetMetadataAsync()

返回已设置的异步元数据。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Description::MetadataSet ^> ^ GetMetadataAsync();
public System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet> GetMetadataAsync ();
member this.GetMetadataAsync : unit -> System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet>
Public Function GetMetadataAsync () As Task(Of MetadataSet)

返回

Task<MetadataSet>

已设置的异步元数据。

适用于

GetMetadataAsync(EndpointAddress)

从指定的地址返回已设置的异步元数据。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Description::MetadataSet ^> ^ GetMetadataAsync(System::ServiceModel::EndpointAddress ^ address);
public System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet> GetMetadataAsync (System.ServiceModel.EndpointAddress address);
member this.GetMetadataAsync : System.ServiceModel.EndpointAddress -> System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet>
Public Function GetMetadataAsync (address As EndpointAddress) As Task(Of MetadataSet)

参数

address
EndpointAddress

从中下载异步元数据的地址。

返回

Task<MetadataSet>

位于地址处的异步元数据。

适用于

GetMetadataAsync(EndpointAddress, Uri)

从指定的地址和指定的路由返回已设置的异步元数据。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Description::MetadataSet ^> ^ GetMetadataAsync(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet> GetMetadataAsync (System.ServiceModel.EndpointAddress address, Uri via);
member this.GetMetadataAsync : System.ServiceModel.EndpointAddress * Uri -> System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet>
Public Function GetMetadataAsync (address As EndpointAddress, via As Uri) As Task(Of MetadataSet)

参数

address
EndpointAddress

要从其下载元数据的地址。

via
Uri

表示用于获取消息的路由的 URI 地址。

返回

Task<MetadataSet>

已下载的元数据。

适用于

GetMetadataAsync(Uri, MetadataExchangeClientMode)

使用指定的下载模式从指定的地址返回已设置的异步元数据

public:
 System::Threading::Tasks::Task<System::ServiceModel::Description::MetadataSet ^> ^ GetMetadataAsync(Uri ^ address, System::ServiceModel::Description::MetadataExchangeClientMode mode);
public System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet> GetMetadataAsync (Uri address, System.ServiceModel.Description.MetadataExchangeClientMode mode);
member this.GetMetadataAsync : Uri * System.ServiceModel.Description.MetadataExchangeClientMode -> System.Threading.Tasks.Task<System.ServiceModel.Description.MetadataSet>
Public Function GetMetadataAsync (address As Uri, mode As MetadataExchangeClientMode) As Task(Of MetadataSet)

参数

address
Uri

要从其下载元数据的地址。

mode
MetadataExchangeClientMode

要使用的下载机制。

返回

Task<MetadataSet>

已下载的元数据。

适用于