XmlFormatExtensionPrefixAttribute 생성자

정의

XmlFormatExtensionPrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

XmlFormatExtensionPrefixAttribute()

XmlFormatExtensionPrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

XmlFormatExtensionPrefixAttribute(String, String)

서비스 설명 형식 확장의 XML 네임스페이스 및 XML 네임스페이스 접두사를 설정하여 XmlFormatExtensionPrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

XmlFormatExtensionPrefixAttribute()

XmlFormatExtensionPrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

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

추가 정보

적용 대상

XmlFormatExtensionPrefixAttribute(String, String)

서비스 설명 형식 확장의 XML 네임스페이스 및 XML 네임스페이스 접두사를 설정하여 XmlFormatExtensionPrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

prefix
String

서비스 설명 형식 확장과 관련된 XML 네임스페이스 접두사입니다.

ns
String

서비스 설명 형식 확장과 관련된 XML 네임스페이스입니다.

예제

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

적용 대상