Поделиться через


OperationBinding.Faults Свойство

Определение

Получает коллекцию FaultBindingCollection, сопоставленную экземпляру класса OperationBinding.

public:
 property System::Web::Services::Description::FaultBindingCollection ^ Faults { System::Web::Services::Description::FaultBindingCollection ^ get(); };
public System.Web.Services.Description.FaultBindingCollection Faults { get; }
member this.Faults : System.Web.Services.Description.FaultBindingCollection
Public ReadOnly Property Faults As FaultBindingCollection

Значение свойства

Коллекция привязки ошибки.

Примеры

// 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)

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