Modifier

Partager via


ServiceEndpointCollection.FindAll Method

Definition

Returns a collection of all the service endpoints that satisfy specific criteria.

Overloads

FindAll(Type)

Returns a collection of all the service endpoints for a specified type of service.

FindAll(XmlQualifiedName)

Returns a collection of all the service endpoints for a specified service name.

Remarks

If you only need to find the first ServiceEndpoint that satisfies the specified criteria, use one of the Find methods instead.

FindAll(Type)

Source:
ServiceEndpointCollection.cs
Source:
ServiceEndpointCollection.cs

Returns a collection of all the service endpoints for a specified type of service.

public:
 System::Collections::ObjectModel::Collection<System::ServiceModel::Description::ServiceEndpoint ^> ^ FindAll(Type ^ contractType);
public System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint> FindAll (Type contractType);
member this.FindAll : Type -> System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint>
Public Function FindAll (contractType As Type) As Collection(Of ServiceEndpoint)

Parameters

contractType
Type

The Type of contract for the service endpoint.

Returns

The Collection<T> of type ServiceEndpoint that contains service endpoints of the specified type or the empty collection if none is found.

Exceptions

contractType is null.

Remarks

If you only need to find the first ServiceEndpoint that satisfies the specified criteria, use one of the Find methods instead.

Applies to

FindAll(XmlQualifiedName)

Source:
ServiceEndpointCollection.cs
Source:
ServiceEndpointCollection.cs

Returns a collection of all the service endpoints for a specified service name.

public:
 System::Collections::ObjectModel::Collection<System::ServiceModel::Description::ServiceEndpoint ^> ^ FindAll(System::Xml::XmlQualifiedName ^ contractName);
public System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint> FindAll (System.Xml.XmlQualifiedName contractName);
member this.FindAll : System.Xml.XmlQualifiedName -> System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ServiceEndpoint>
Public Function FindAll (contractName As XmlQualifiedName) As Collection(Of ServiceEndpoint)

Parameters

contractName
XmlQualifiedName

The XmlQualifiedName for the service.

Returns

The Collection<T> of type ServiceEndpoint that contains service endpoints with the specified contract name and namespace or the empty collection if none is found.

Exceptions

contractName is null.

Remarks

If you only need to find the first ServiceEndpoint that satisfies the specified criteria, use one of the Find methods instead.

Applies to