更新 : 2007 年 11 月
名前空間 :
System.ServiceModel.Description
アセンブリ :
System.ServiceModel (System.ServiceModel.dll 内)
Public Class ServiceEndpointCollection _
Inherits Collection(Of ServiceEndpoint)
Dim instance As ServiceEndpointCollection
public class ServiceEndpointCollection : Collection<ServiceEndpoint>
public ref class ServiceEndpointCollection : public Collection<ServiceEndpoint^>
public class ServiceEndpointCollection extends Collection<ServiceEndpoint>
public class ServiceEndpointCollection extends Collection<ServiceEndpoint>
サービスのエンドポイントのコレクションは、複数のエンドポイントを持つサービスを管理するためにメタデータ API によって使用されます。ServiceEndpointCollection は、たとえば、WSDL ポートの種類からサービス エンドポイントを作成するときに、Endpoints プロパティと ImportAllEndpoints メソッドによって返されます。
このコレクションは、特定の名前またはアドレスを持つ特定の種類のエンドポイントを返す Find を実行したり、指定したコントラクト型または名前の基準を満たすエンドポイントをすべて返す FindAll を実行したりするための機能を提供します。
Find メソッドと FindAll メソッドを使用して、さまざまな検索基準を満たす ServiceEndpoint オブジェクトを列挙する方法を次の例に示します。
[System.ServiceModel.ServiceContractAttribute(
Namespace = "http://Microsoft.ServiceModel.Samples")]
public interface IAdd
{
[System.ServiceModel.OperationContractAttribute(
Action = "http://Microsoft.ServiceModel.Samples/IAdd/Add",
ReplyAction = "http://Microsoft.ServiceModel.Samples/IAdd/AddResponse")]
double Add(double n1, double n2);
}
public interface IAddChannel : IAdd, System.ServiceModel.IClientChannel
{
}
public partial class AddClient : System.ServiceModel.ClientBase<IAdd>, IAdd
{
public AddClient()
{
}
public AddClient(string endpointConfigurationName)
:
base(endpointConfigurationName)
{
}
public AddClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress address)
:
base(binding, address)
{
}
public double Add(double n1, double n2)
{
return base.Channel.Add(n1, n2);
}
}
System..::.Object
System.Collections.ObjectModel..::.Collection<(Of <(ServiceEndpoint>)>)
System.ServiceModel.Description..::.ServiceEndpointCollection
この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
.NET Framework
サポート対象 : 3.5、3.0
参照