XmlFormatExtensionPrefixAttribute Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
XmlFormatExtensionPrefixAttribute sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
XmlFormatExtensionPrefixAttribute() |
XmlFormatExtensionPrefixAttribute sınıfının yeni bir örneğini başlatır. |
XmlFormatExtensionPrefixAttribute(String, String) |
Hizmet açıklaması biçim uzantısı için XML ad alanı ve XML ad alanı ön ekini ayarlayarak sınıfının yeni bir örneğini XmlFormatExtensionPrefixAttribute başlatır. |
XmlFormatExtensionPrefixAttribute()
XmlFormatExtensionPrefixAttribute sınıfının yeni bir örneğini başlatır.
public:
XmlFormatExtensionPrefixAttribute();
public XmlFormatExtensionPrefixAttribute ();
Public Sub New ()
Ayrıca bkz.
Şunlara uygulanır
XmlFormatExtensionPrefixAttribute(String, String)
Hizmet açıklaması biçim uzantısı için XML ad alanı ve XML ad alanı ön ekini ayarlayarak sınıfının yeni bir örneğini XmlFormatExtensionPrefixAttribute başlatır.
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)
Parametreler
- prefix
- String
Hizmet açıklaması biçim uzantısıyla ilişkilendirilmiş XML ad alanı ön eki.
- ns
- String
Hizmet açıklaması biçim uzantısıyla ilişkilendirilmiş XML ad alanı.
Örnekler
// 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