次の方法で共有


Port.Binding プロパティ

Port の XML <binding> 属性の値を取得または設定します。

Public Property Binding As XmlQualifiedName
[C#]
public XmlQualifiedName Binding {get; set;}
[C++]
public: __property XmlQualifiedName* get_Binding();public: __property void set_Binding(XmlQualifiedName*);
[JScript]
public function get Binding() : XmlQualifiedName;public function set Binding(XmlQualifiedName);

プロパティ値

XmlQualifiedName

解説

バインディングによって、 PortType の操作とメッセージに対するメッセージ形式とプロトコルの詳細を定義します。このプロパティは、特定の Port に対するこれらの値を取得または設定します。

使用例

 

         ' Create a Port.
         Dim postPort As New Port()
         postPort.Name = "PortServiceHttpPost"
         postPort.Binding = New XmlQualifiedName("s0:PortServiceHttpPost")


[C#] 
// Create a Port.
Port postPort = new Port();
postPort.Name = "PortServiceHttpPost";
postPort.Binding = new XmlQualifiedName("s0:PortServiceHttpPost");

[C++] 
// Create a Port.
Port* postPort = new Port();
postPort->Name = S"PortServiceHttpPost";
postPort->Binding = new XmlQualifiedName(S"s0:PortServiceHttpPost");

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

Port クラス | Port メンバ | System.Web.Services.Description 名前空間