Freigeben über


Binding.Type-Eigenschaft

Ruft einen Wert ab bzw. legt einen Wert fest, der den durch den Namespace qualifizierten Namen des PortType darstellt, mit dem Binding verknüpft ist.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Property Type As XmlQualifiedName
'Usage
Dim instance As Binding
Dim value As XmlQualifiedName

value = instance.Type

instance.Type = value
public XmlQualifiedName Type { get; set; }
public:
property XmlQualifiedName^ Type {
    XmlQualifiedName^ get ();
    void set (XmlQualifiedName^ value);
}
/** @property */
public XmlQualifiedName get_Type ()

/** @property */
public void set_Type (XmlQualifiedName value)
public function get Type () : XmlQualifiedName

public function set Type (value : XmlQualifiedName)

Eigenschaftenwert

Ein XmlQualifiedName.

Hinweise

Der Standardwert ist eine leere Zeichenfolge ("").

Beispiel

Das folgende Beispiel demonstriert die Verwendung der Type-Eigenschaft.

' 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);
// 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.set_Type(new XmlQualifiedName("MathServiceSoap", 
    myServiceDescription.get_TargetNamespace()));

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Binding-Klasse
Binding-Member
System.Web.Services.Description-Namespace