クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 3.5
.NET Framework 3.5
すべて縮小/すべて展開 すべて縮小
このページは次のバージョンについて記述しています。
Microsoft Visual Studio 2008/.NET Framework 3.5

その他のバージョンについては、以下の情報を参照してください。
.NET Framework クラス ライブラリ
ServiceEndpointCollection クラス

更新 : 2007 年 11 月

サービスのエンドポイントを含むコレクション。

名前空間 :  System.ServiceModel.Description
アセンブリ :  System.ServiceModel (System.ServiceModel.dll 内)
Visual Basic (宣言)
Public Class ServiceEndpointCollection _
    Inherits Collection(Of ServiceEndpoint)
Visual Basic (使用法)
Dim instance As ServiceEndpointCollection
C#
public class ServiceEndpointCollection : Collection<ServiceEndpoint>
Visual C++
public ref class ServiceEndpointCollection : public Collection<ServiceEndpoint^>
J#
public class ServiceEndpointCollection extends Collection<ServiceEndpoint>
JScript
public class ServiceEndpointCollection extends Collection<ServiceEndpoint>

サービスのエンドポイントのコレクションは、複数のエンドポイントを持つサービスを管理するためにメタデータ API によって使用されます。ServiceEndpointCollection は、たとえば、WSDL ポートの種類からサービス エンドポイントを作成するときに、Endpoints プロパティと ImportAllEndpoints メソッドによって返されます。

このコレクションは、特定の名前またはアドレスを持つ特定の種類のエンドポイントを返す Find を実行したり、指定したコントラクト型または名前の基準を満たすエンドポイントをすべて返す FindAll を実行したりするための機能を提供します。

Find メソッドと FindAll メソッドを使用して、さまざまな検索基準を満たす ServiceEndpoint オブジェクトを列挙する方法を次の例に示します。

C#
[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
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2009 Microsoft Corporation. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker