Edit

Share via


MetadataImporter.ImportAllEndpoints Method

Definition

When overridden in a derived class, returns all endpoints in the metadata.

public:
 abstract System::ServiceModel::Description::ServiceEndpointCollection ^ ImportAllEndpoints();
public abstract System.ServiceModel.Description.ServiceEndpointCollection ImportAllEndpoints ();
abstract member ImportAllEndpoints : unit -> System.ServiceModel.Description.ServiceEndpointCollection
Public MustOverride Function ImportAllEndpoints () As ServiceEndpointCollection

Returns

A collection of ServiceEndpoint objects that are published by a service.

Remarks

Implement the ImportAllEndpoints method to return all endpoints in the imported metadata. Metadata that has been imported as service endpoints cannot be used to create a runtime or export metadata because the imported endpoints contain no managed type information. To use the metadata to create a client or service runtime or to generate metadata, you must first generate and compile code from the metadata and use that type information to create a new System.ServiceModel.Description.ContractDescription object using GetContract.

Applies to