Modifier

Partager via


MetadataExchangeClient.GetMetadataAsync Method

Definition

Returns an asynchronous metadata set.

Overloads

GetMetadataAsync()

Returns an asynchronous metadata set.

GetMetadataAsync(EndpointAddress)

Returns an asynchronous metadata set from the specified address.

GetMetadataAsync(EndpointAddress, Uri)

Returns an asynchronous metadata set from the specified address and on the specified route.

GetMetadataAsync(Uri, MetadataExchangeClientMode)

Returns an asynchronous metadata set from the specified address using the specified download mode.

GetMetadataAsync()

Returns an asynchronous metadata set.

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)

Returns

The asynchronous metadata set.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by GetMetadata().

Applies to

GetMetadataAsync(EndpointAddress)

Returns an asynchronous metadata set from the specified address.

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)

Parameters

address
EndpointAddress

The address from which to download the asynchronous metadata.

Returns

The asynchronous metadata located at the address.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by GetMetadata(EndpointAddress).

Applies to

GetMetadataAsync(EndpointAddress, Uri)

Returns an asynchronous metadata set from the specified address and on the specified route.

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)

Parameters

address
EndpointAddress

The address from which to download the metadata.

via
Uri

The URI address that represents the route a message takes.

Returns

The metadata that is downloaded.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by GetMetadata(EndpointAddress, Uri).

Applies to

GetMetadataAsync(Uri, MetadataExchangeClientMode)

Returns an asynchronous metadata set from the specified address using the specified download mode.

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)

Parameters

address
Uri

The address from which to download the metadata.

mode
MetadataExchangeClientMode

The download mechanism to use.

Returns

The metadata that is downloaded.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by GetMetadata(Uri, MetadataExchangeClientMode).

Applies to