Freigeben über


FaultBinding.Extensions-Eigenschaft

Ruft die Auflistung der Erweiterbarkeitselemente ab, die dem aktuellen FaultBinding zugeordnet sind.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property Extensions As ServiceDescriptionFormatExtensionCollection
'Usage
Dim instance As FaultBinding
Dim value As ServiceDescriptionFormatExtensionCollection

value = instance.Extensions
public override ServiceDescriptionFormatExtensionCollection Extensions { get; }
public:
virtual property ServiceDescriptionFormatExtensionCollection^ Extensions {
    ServiceDescriptionFormatExtensionCollection^ get () override;
}
/** @property */
public ServiceDescriptionFormatExtensionCollection get_Extensions ()
public override function get Extensions () : ServiceDescriptionFormatExtensionCollection

Eigenschaftenwert

Eine ServiceDescriptionFormatExtensionCollection. Der Standardwert ist eine Auflistung mit einem Count von 0 (null).

Beispiel

Das folgende Beispiel veranschaulicht eine typische Verwendung der Extensions-Eigenschaft.

Dim myFaultBindingCollection As FaultBindingCollection = myOperationBinding.Faults
Dim myFaultBinding As New FaultBinding()
myFaultBinding.Name = "ErrorString"
' Associate SOAP fault binding to the fault binding of the operation.
myExtensions = myFaultBinding.Extensions
Dim mySoapFaultBinding As New SoapFaultBinding()
mySoapFaultBinding.Use = SoapBindingUse.Literal
mySoapFaultBinding.Namespace = "https://www.contoso.com/stockquote"
myExtensions.Add(mySoapFaultBinding)
myFaultBindingCollection.Add(myFaultBinding)
FaultBindingCollection myFaultBindingCollection = myOperationBinding.Faults;
FaultBinding myFaultBinding = new FaultBinding();
myFaultBinding.Name = "ErrorString";
// Associate SOAP fault binding to the fault binding of the operation.
myExtensions = myFaultBinding.Extensions;
SoapFaultBinding mySoapFaultBinding = new SoapFaultBinding();
mySoapFaultBinding.Use = SoapBindingUse.Literal;
mySoapFaultBinding.Namespace = "https://www.contoso.com/stockquote";
myExtensions.Add(mySoapFaultBinding);
myFaultBindingCollection.Add(myFaultBinding);
FaultBindingCollection^ myFaultBindingCollection = myOperationBinding->Faults;
FaultBinding^ myFaultBinding = gcnew FaultBinding;
myFaultBinding->Name = "ErrorString";
// Associate SOAP fault binding to the fault binding of the operation.
myExtensions = myFaultBinding->Extensions;
SoapFaultBinding^ mySoapFaultBinding = gcnew SoapFaultBinding;
mySoapFaultBinding->Use = SoapBindingUse::Literal;
mySoapFaultBinding->Namespace = "https://www.contoso.com/stockquote";
myExtensions->Add( mySoapFaultBinding );
myFaultBindingCollection->Add( myFaultBinding );
FaultBindingCollection myFaultBindingCollection = 
    myOperationBinding.get_Faults();
FaultBinding myFaultBinding = new FaultBinding();
myFaultBinding.set_Name("ErrorString");

// Associate SOAP fault binding to the fault binding of the operation.
myExtensions = myFaultBinding.get_Extensions();
SoapFaultBinding mySoapFaultBinding = new SoapFaultBinding();

mySoapFaultBinding.set_Use(SoapBindingUse.Literal);
mySoapFaultBinding.set_Namespace("https://www.contoso.com/stockquote");
myExtensions.Add(mySoapFaultBinding);
myFaultBindingCollection.Add(myFaultBinding);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

FaultBinding-Klasse
FaultBinding-Member
System.Web.Services.Description-Namespace