XmlFormatExtensionPrefixAttribute Konstruktoren

Definition

Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse.

Überlädt

XmlFormatExtensionPrefixAttribute()

Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse.

XmlFormatExtensionPrefixAttribute(String, String)

Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse, wobei der XML-Namespace und das XML-Namespacepräfix für eine Formaterweiterung der Dienstbeschreibung festgelegt werden.

XmlFormatExtensionPrefixAttribute()

Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse.

public:
 XmlFormatExtensionPrefixAttribute();
public XmlFormatExtensionPrefixAttribute ();
Public Sub New ()

Siehe auch

Gilt für

XmlFormatExtensionPrefixAttribute(String, String)

Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse, wobei der XML-Namespace und das XML-Namespacepräfix für eine Formaterweiterung der Dienstbeschreibung festgelegt werden.

public:
 XmlFormatExtensionPrefixAttribute(System::String ^ prefix, System::String ^ ns);
public XmlFormatExtensionPrefixAttribute (string prefix, string ns);
new System.Web.Services.Configuration.XmlFormatExtensionPrefixAttribute : string * string -> System.Web.Services.Configuration.XmlFormatExtensionPrefixAttribute
Public Sub New (prefix As String, ns As String)

Parameter

prefix
String

Das XML-Namespacepräfix, das einer Formaterweiterung der Dienstbeschreibung zugeordnet ist.

ns
String

Der XML-Namespace, der einer Formaterweiterung der Dienstbeschreibung zugeordnet ist.

Beispiele

// The YMLOperationBinding class is part of the YML SDFE, as it is the
// class that is serialized into XML and is placed in the service
// description.
[XmlFormatExtension("action", YMLOperationBinding.YMLNamespace,
    typeof(OperationBinding))]
[XmlFormatExtensionPrefix("yml", YMLOperationBinding.YMLNamespace)]
public class YMLOperationBinding : ServiceDescriptionFormatExtension
{
    private Boolean reverse;

    public const string YMLNamespace = "http://www.contoso.com/yml";

    [XmlElement("Reverse")]
    public Boolean Reverse
    {
        get { return reverse; }
        set { reverse = value; }
    }
}
' The YMLOperationBinding class is part of the YML SDFE, as it is the
' class that is serialized into XML and is placed in the service
' description.
<XmlFormatExtension("action", YMLOperationBinding.YMLNamespace, _
    GetType(OperationBinding)), _
    XmlFormatExtensionPrefix("yml", YMLOperationBinding.YMLNamespace)> _
Public Class YMLOperationBinding
    Inherits ServiceDescriptionFormatExtension
    Private _reverse As Boolean
    Public Const YMLNamespace As String = "http://www.contoso.com/yml"

    <XmlElement("Reverse")> _
    Public Property Reverse() As Boolean
        Get
            Return _reverse
        End Get
        Set(ByVal Value As Boolean)
            _reverse = Value
        End Set
    End Property

End Class

Gilt für