ServiceEndpointCollection.FindAll 方法

定義

傳回符合特定準則的所有服務端點的集合。

多載

FindAll(Type)

傳回指定之服務型別的所有服務端點的集合。

FindAll(XmlQualifiedName)

傳回指定之服務名稱的所有服務端點的集合。

備註

如果您僅需要尋找符合指定之準則的第一個 ServiceEndpoint,請改用其中一個 Find 方法。

FindAll(Type)

傳回指定之服務型別的所有服務端點的集合。

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)

參數

contractType
Type

服務端點之合約的 Type

傳回

Collection<ServiceEndpoint>

型別 Collection<T>ServiceEndpoint,包含指定型別的服務端點或空集合 (如果找不到的話)。

例外狀況

contractTypenull

備註

如果您僅需要尋找符合指定之準則的第一個 ServiceEndpoint,請改用其中一個 Find 方法。

適用於

FindAll(XmlQualifiedName)

傳回指定之服務名稱的所有服務端點的集合。

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)

參數

contractName
XmlQualifiedName

服務的 XmlQualifiedName

傳回

Collection<ServiceEndpoint>

型別 Collection<T>ServiceEndpoint,包含具有指定合約名稱和命名空間的服務端點或空集合 (如果找不到的話)。

例外狀況

contractNamenull

備註

如果您僅需要尋找符合指定之準則的第一個 ServiceEndpoint,請改用其中一個 Find 方法。

適用於