Compartilhar via


OperationBinding.Extensions Propriedade

Definição

Obtém a coleção de elementos de extensibilidade específicos para o OperationBinding atual.

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

Valor da propriedade

Uma coleção de elementos de extensibilidade.

Exemplos

// Create an extensibility element for a SoapOperationBinding.
SoapOperationBinding^ mySoapOperationBinding = gcnew SoapOperationBinding;
mySoapOperationBinding->Style = SoapBindingStyle::Document;
mySoapOperationBinding->SoapAction = String::Concat( myTargetNamespace, addOperation );

// Add the extensibility element SoapOperationBinding to 
// the OperationBinding.
addOperationBinding->Extensions->Add( mySoapOperationBinding );
// Create an extensibility element for a SoapOperationBinding.
SoapOperationBinding mySoapOperationBinding =
   new SoapOperationBinding();
mySoapOperationBinding.Style = SoapBindingStyle.Document;
mySoapOperationBinding.SoapAction = myTargetNamespace + addOperation;

// Add the extensibility element SoapOperationBinding to
// the OperationBinding.
addOperationBinding.Extensions.Add(mySoapOperationBinding);
' Create an extensibility element for a SoapOperationBinding.
Dim mySoapOperationBinding As New SoapOperationBinding()
mySoapOperationBinding.Style = SoapBindingStyle.Document
mySoapOperationBinding.SoapAction = myTargetNamespace & addOperation

' Add the extensibility element SoapOperationBinding to 
' the OperationBinding.
addOperationBinding.Extensions.Add(mySoapOperationBinding)

Comentários

Para obter mais informações sobre a Linguagem de Descrição dos Serviços Web (WSDL), consulte a especificação do WSDL .

Aplica-se a