MetadataExchangeClient.GetMetadataAsync Method (Uri, MetadataExchangeClientMode)

.NET Framework (current version)
 

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

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Task<MetadataSet> GetMetadataAsync(
	Uri address,
	MetadataExchangeClientMode mode
)

Parameters

address
Type: System.Uri

The address from which to download the metadata.

mode
Type: System.ServiceModel.Description.MetadataExchangeClientMode

The download mechanism to use.

Return Value

Type: System.Threading.Tasks.Task<MetadataSet>

The metadata that is downloaded.

.NET Framework
Available since 4.5
Return to top
Show: