This documentation is archived and is not being maintained.

Binding.Type Property

Gets or sets a value representing the namespace-qualified name of the PortType with which the Binding is associated.

[Visual Basic]
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);

Property Value

An XmlQualifiedName.

Remarks

The default value is an empty string ("").

Example

[Visual Basic, C#, C++] The following example demonstrates the use of the Type property.

[Visual Basic] 
' 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] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Binding Class | Binding Members | System.Web.Services.Description Namespace

Show: