MetadataImporter.ImportAllEndpoints Method

Definition

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

public abstract System.ServiceModel.Description.ServiceEndpointCollection ImportAllEndpoints ();

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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 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