XmlFormatExtensionPrefixAttribute Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| 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 Dienstbeschreibungsformaterweiterung festgelegt werden. |
XmlFormatExtensionPrefixAttribute()
Initialisiert eine neue Instanz der XmlFormatExtensionPrefixAttribute-Klasse.
public:
XmlFormatExtensionPrefixAttribute();
public XmlFormatExtensionPrefixAttribute();
Public Sub New ()
Weitere Informationen
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 Dienstbeschreibungsformaterweiterung 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 Dienstbeschreibungsformaterweiterung zugeordnet ist.
- ns
- String
Der XML-Namespace, der einer Dienstbeschreibungsformaterweiterung 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