Binding.Type 屬性

定義

取得或設定數值,表示 Binding 所關聯的 PortType 的命名空間限定名稱。

public:
 property System::Xml::XmlQualifiedName ^ Type { System::Xml::XmlQualifiedName ^ get(); void set(System::Xml::XmlQualifiedName ^ value); };
public System.Xml.XmlQualifiedName Type { get; set; }
member this.Type : System.Xml.XmlQualifiedName with get, set
Public Property Type As XmlQualifiedName

屬性值

XmlQualifiedName與 相關聯之 的 PortTypeBinding

範例

下列範例示範 如何使用 Type 屬性。

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

備註

預設值為空字串 ("")。

適用於