MetadataExchangeClient.GetMetadataAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an asynchronous metadata set.
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. |
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
.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 |
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
.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 |
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
.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 |
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.
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 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: