XmlFormatExtensionPrefixAttribute Constructors

Definitie

Initialiseert een nieuw exemplaar van de XmlFormatExtensionPrefixAttribute klasse.

Overloads

Name Description
XmlFormatExtensionPrefixAttribute()

Initialiseert een nieuw exemplaar van de XmlFormatExtensionPrefixAttribute klasse.

XmlFormatExtensionPrefixAttribute(String, String)

Initialiseert een nieuw exemplaar van de XmlFormatExtensionPrefixAttribute klasse, waarbij de XML-naamruimte en het xml-naamruimtevoorvoegsel worden ingesteld voor een extensie voor de indeling van de servicebeschrijving.

XmlFormatExtensionPrefixAttribute()

Initialiseert een nieuw exemplaar van de XmlFormatExtensionPrefixAttribute klasse.

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

Zie ook

Van toepassing op

XmlFormatExtensionPrefixAttribute(String, String)

Initialiseert een nieuw exemplaar van de XmlFormatExtensionPrefixAttribute klasse, waarbij de XML-naamruimte en het xml-naamruimtevoorvoegsel worden ingesteld voor een extensie voor de indeling van de servicebeschrijving.

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)

Parameters

prefix
String

Het voorvoegsel van de XML-naamruimte dat is gekoppeld aan een extensie voor de indeling van de servicebeschrijving.

ns
String

De XML-naamruimte die is gekoppeld aan een indelingsextensie voor de servicebeschrijving.

Voorbeelden

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

Van toepassing op