Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MetadataResolver.BeginResolve Method (Generic IEnumerable, EndpointAddress, MetadataExchangeClient, AsyncCallback, Object)

Begins an asynchronous call that resolves a metadata address into the ServiceEndpoint objects for the specified contracts, using the specified address, System.ServiceModel.Description.MetadataExchangeClient, asynchronous state and delegate.

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

public static IAsyncResult BeginResolve (
	IEnumerable<ContractDescription> contracts,
	EndpointAddress address,
	MetadataExchangeClient client,
	AsyncCallback callback,
	Object asyncState
)
public static IAsyncResult BeginResolve (
	IEnumerable<ContractDescription> contracts, 
	EndpointAddress address, 
	MetadataExchangeClient client, 
	AsyncCallback callback, 
	Object asyncState
)
public static function BeginResolve (
	contracts : IEnumerable<ContractDescription>, 
	address : EndpointAddress, 
	client : MetadataExchangeClient, 
	callback : AsyncCallback, 
	asyncState : Object
) : IAsyncResult
Not applicable.

Parameters

contracts

The contracts for which to download and resolve metadata.

address

The metadata address.

client

The System.ServiceModel.Description.MetadataExchangeClient used to retrieve the metadata.

callback

The asynchronous callback delegate invoked when the call is complete.

asyncState

The state associated with the asynchronous call.

Return Value

The IAsyncResult that references the asynchronous resolve operation.

Exception typeCondition

ArgumentNullException

The address, contract, client, or callback is a null reference (Nothing in Visual Basic).

ArgumentException

contracts is empty, at least one member of contracts is null, or contracts contains more than one contract with the same name and namespace.

The default System.ServiceModel.Description.MetadataExchangeClientMode is MetadataExchangeClientMode.MetadataExchange.

If you want to download metadata but not resolve the information into ServiceEndpoint objects, use the System.ServiceModel.Description.MetadataExchangeClient directly.

NoteNote:

An empty collection is returned if no endpoints were imported or if no endpoints matched the contract. If an empty collection is returned, a warning trace is written.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft