Язык

Binding.Type Свойство

Определение

Возвращает или задает значение, представляющее полное имя пространства имен PortType , с которым связан объект Binding .

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 ЧастьPortType, с которой Binding связана связь.

Примеры

В следующем примере показано использование 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)

Комментарии

Значение по умолчанию — пустая строка ("").

Применяется к