Share via


WebHttpBindingElement 建構函式

定義

初始化 WebHttpBindingElement 類別的新執行個體。

多載

WebHttpBindingElement()

初始化 WebHttpBindingElement 類別的新執行個體。

WebHttpBindingElement(String)

初始化 WebHttpBindingElement 類別的新執行個體,並且指定項目的名稱。

WebHttpBindingElement()

初始化 WebHttpBindingElement 類別的新執行個體。

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

備註

根據預設,這個建構函式 (Constructor) 會將此組態項目的名稱設定為 null

適用於

WebHttpBindingElement(String)

初始化 WebHttpBindingElement 類別的新執行個體,並且指定項目的名稱。

public:
 WebHttpBindingElement(System::String ^ name);
public WebHttpBindingElement (string name);
new System.ServiceModel.Configuration.WebHttpBindingElement : string -> System.ServiceModel.Configuration.WebHttpBindingElement
Public Sub New (name As String)

參數

name
String

這個繫結組態項目所使用的名稱。

備註

name 中的預設 nullWebHttpBindingElement()

適用於