次の方法で共有


Binding.Type プロパティ

Binding に関連付けられている PortType の名前空間限定名を表す値を取得または設定します。

Public Property Type As XmlQualifiedName
[C#]
public XmlQualifiedName Type {get; set;}
[C++]
public: __property XmlQualifiedName* get_Type();public: __property void set_Type(XmlQualifiedName*);
[JScript]
public function get Type() : XmlQualifiedName;public function set Type(XmlQualifiedName);

プロパティ値

XmlQualifiedName

解説

既定値は空の文字列 ("") です。

使用例

[Visual Basic, C#, C++] Type プロパティの使用例を次に示します。

 
' Pass the name of the existing porttype 'MathServiceSoap' and the Xml targetNamespace attribute of the Descriptions tag.
myBinding.Type = New XmlQualifiedName("MathServiceSoap", myServiceDescription.TargetNamespace)

[C#] 
// Pass the name of the existing porttype 'MathServiceSoap' and the Xml targetNamespace attribute of the Descriptions tag.
myBinding.Type = new XmlQualifiedName("MathServiceSoap",myServiceDescription.TargetNamespace);

[C++] 
// Pass the name of the existing porttype 'MathServiceSoap' and the Xml targetNamespace attribute of the Descriptions tag.
myBinding->Type = new XmlQualifiedName(S"MathServiceSoap",myServiceDescription->TargetNamespace);

[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 ファミリ

参照

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