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 ();

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

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

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

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

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

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

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

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1