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)

傳回

非同步中繼資料集。

適用於

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

要從中下載非同步中繼資料的位址。

傳回

位於該位址的非同步中繼資料。

適用於

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 位址。

傳回

已下載的中繼資料。

適用於

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

要使用的下載機制。

傳回

已下載的中繼資料。

適用於