ServiceDescription コンストラクター

定義

ServiceDescription クラスの新しいインスタンスを初期化します。

オーバーロード

ServiceDescription()

ServiceDescription クラスの新しいインスタンスを初期化します。

ServiceDescription(IEnumerable<ServiceEndpoint>)

指定したサービス エンドポイントの列挙体から、ServiceDescription クラスの新しいインスタンスを初期化します。

ServiceDescription()

ServiceDescription クラスの新しいインスタンスを初期化します。

public:
 ServiceDescription();
public ServiceDescription ();
Public Sub New ()

// Use Default constructor
ServiceDescription sd = new ServiceDescription();
' Use Default constructor
Dim sd As New ServiceDescription()

適用対象

ServiceDescription(IEnumerable<ServiceEndpoint>)

指定したサービス エンドポイントの列挙体から、ServiceDescription クラスの新しいインスタンスを初期化します。

public:
 ServiceDescription(System::Collections::Generic::IEnumerable<System::ServiceModel::Description::ServiceEndpoint ^> ^ endpoints);
public ServiceDescription (System.Collections.Generic.IEnumerable<System.ServiceModel.Description.ServiceEndpoint> endpoints);
new System.ServiceModel.Description.ServiceDescription : seq<System.ServiceModel.Description.ServiceEndpoint> -> System.ServiceModel.Description.ServiceDescription
Public Sub New (endpoints As IEnumerable(Of ServiceEndpoint))

パラメーター

endpoints
IEnumerable<ServiceEndpoint>

サービスの説明を初期化するために使用される IEnumerable<T> 型の ServiceEndpoint

例外

endpointsnullです。

// Create ServiceDescription from a collection of service endpoints
List<ServiceEndpoint> endpoints = new List<ServiceEndpoint>();
ContractDescription conDescr = new ContractDescription("ICalculator");
EndpointAddress endpointAddress = new EndpointAddress("http://localhost:8001/Basic");
ServiceEndpoint ep = new ServiceEndpoint(conDescr, new BasicHttpBinding(), endpointAddress);
endpoints.Add(ep);
ServiceDescription sd2 = new ServiceDescription(endpoints);
' Create ServiceDescription from a collection of service endpoints
Dim endpoints As New List(Of ServiceEndpoint)()
Dim conDescr As New ContractDescription("ICalculator")
Dim endpointAddress As New EndpointAddress("http://localhost:8001/Basic")
Dim ep As New ServiceEndpoint(conDescr, New BasicHttpBinding(), endpointAddress)
endpoints.Add(ep)
Dim sd2 As New ServiceDescription(endpoints)

適用対象