Binding.Extensions 属性

定义

获取在 XML Web services 中使用的扩展性元素集合。

public:
 property System::Web::Services::Description::ServiceDescriptionFormatExtensionCollection ^ Extensions { System::Web::Services::Description::ServiceDescriptionFormatExtensionCollection ^ get(); };
public:
 virtual property System::Web::Services::Description::ServiceDescriptionFormatExtensionCollection ^ Extensions { System::Web::Services::Description::ServiceDescriptionFormatExtensionCollection ^ get(); };
public System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection Extensions { get; }
public override System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection Extensions { get; }
member this.Extensions : System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection
Public ReadOnly Property Extensions As ServiceDescriptionFormatExtensionCollection
Public Overrides ReadOnly Property Extensions As ServiceDescriptionFormatExtensionCollection

属性值

ServiceDescriptionFormatExtensionCollection

包含在 XML Web services 中使用的扩展性元素集合 ServiceDescriptionFormatExtensionCollection 的对象。

示例

以下示例演示属性的典型用法 Extensions

// Create SOAP Extensibility element.
SoapBinding^ mySoapBinding = gcnew SoapBinding;
// SOAP over HTTP.
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add tag soap:binding as an extensibility element.
myBinding->Extensions->Add( mySoapBinding );
// Create SOAP Extensibility element.
SoapBinding mySoapBinding = new SoapBinding();
// SOAP over HTTP.
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding);
' Create SOAP Extensibility element.
Dim mySoapBinding As New SoapBinding()
' SOAP over Http.

mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding)

适用于