XmlFormatExtensionAttribute 建構函式

定義

初始化 XmlFormatExtensionAttribute 類別的新執行個體。

多載

XmlFormatExtensionAttribute()

初始化 XmlFormatExtensionAttribute 類別的新執行個體。

XmlFormatExtensionAttribute(String, String, Type)

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

XmlFormatExtensionAttribute(String, String, Type[])

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

XmlFormatExtensionAttribute(String, String, Type, Type)

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

XmlFormatExtensionAttribute(String, String, Type, Type, Type)

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

XmlFormatExtensionAttribute(String, String, Type, Type, Type, Type)

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

XmlFormatExtensionAttribute()

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體。

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

適用於

XmlFormatExtensionAttribute(String, String, Type)

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

public:
 XmlFormatExtensionAttribute(System::String ^ elementName, System::String ^ ns, Type ^ extensionPoint1);
public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1);
new System.Web.Services.Configuration.XmlFormatExtensionAttribute : string * string * Type -> System.Web.Services.Configuration.XmlFormatExtensionAttribute
Public Sub New (elementName As String, ns As String, extensionPoint1 As Type)

參數

elementName
String

由服務描述格式延伸加入至服務描述的 XML 項目。

ns
String

由服務描述格式延伸加入至服務描述之 XML 項目的 XML 命名空間。

extensionPoint1
Type

要於其上執行服務描述格式延伸的延伸點。

範例

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

適用於

XmlFormatExtensionAttribute(String, String, Type[])

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

public:
 XmlFormatExtensionAttribute(System::String ^ elementName, System::String ^ ns, cli::array <Type ^> ^ extensionPoints);
public XmlFormatExtensionAttribute (string elementName, string ns, Type[] extensionPoints);
new System.Web.Services.Configuration.XmlFormatExtensionAttribute : string * string * Type[] -> System.Web.Services.Configuration.XmlFormatExtensionAttribute
Public Sub New (elementName As String, ns As String, extensionPoints As Type())

參數

elementName
String

由服務描述格式延伸加入至服務描述的 XML 項目。

ns
String

由服務描述格式延伸加入至服務描述之 XML 項目的 XML 命名空間。

extensionPoints
Type[]

要於其上執行服務描述格式延伸之延伸點的陣列。

適用於

XmlFormatExtensionAttribute(String, String, Type, Type)

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

public:
 XmlFormatExtensionAttribute(System::String ^ elementName, System::String ^ ns, Type ^ extensionPoint1, Type ^ extensionPoint2);
public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2);
new System.Web.Services.Configuration.XmlFormatExtensionAttribute : string * string * Type * Type -> System.Web.Services.Configuration.XmlFormatExtensionAttribute
Public Sub New (elementName As String, ns As String, extensionPoint1 As Type, extensionPoint2 As Type)

參數

elementName
String

由服務描述格式延伸加入至服務描述的 XML 項目。

ns
String

由服務描述格式延伸加入至服務描述之 XML 項目的 XML 命名空間。

extensionPoint1
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint2
Type

要於其上執行服務描述格式延伸的延伸點。

適用於

XmlFormatExtensionAttribute(String, String, Type, Type, Type)

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

public:
 XmlFormatExtensionAttribute(System::String ^ elementName, System::String ^ ns, Type ^ extensionPoint1, Type ^ extensionPoint2, Type ^ extensionPoint3);
public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3);
new System.Web.Services.Configuration.XmlFormatExtensionAttribute : string * string * Type * Type * Type -> System.Web.Services.Configuration.XmlFormatExtensionAttribute
Public Sub New (elementName As String, ns As String, extensionPoint1 As Type, extensionPoint2 As Type, extensionPoint3 As Type)

參數

elementName
String

由服務描述格式延伸加入至服務描述的 XML 項目。

ns
String

由服務描述格式延伸加入至服務描述之 XML 項目的 XML 命名空間。

extensionPoint1
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint2
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint3
Type

要於其上執行服務描述格式延伸的延伸點。

適用於

XmlFormatExtensionAttribute(String, String, Type, Type, Type, Type)

來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs
來源:
XmlFormatExtensionAttribute.cs

初始化 XmlFormatExtensionAttribute 類別的新執行個體,指定執行於特定延伸點時要加入的 XML 項目和命名空間。

public:
 XmlFormatExtensionAttribute(System::String ^ elementName, System::String ^ ns, Type ^ extensionPoint1, Type ^ extensionPoint2, Type ^ extensionPoint3, Type ^ extensionPoint4);
public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4);
new System.Web.Services.Configuration.XmlFormatExtensionAttribute : string * string * Type * Type * Type * Type -> System.Web.Services.Configuration.XmlFormatExtensionAttribute
Public Sub New (elementName As String, ns As String, extensionPoint1 As Type, extensionPoint2 As Type, extensionPoint3 As Type, extensionPoint4 As Type)

參數

elementName
String

由服務描述格式延伸加入至服務描述的 XML 項目。

ns
String

由服務描述格式延伸加入至服務描述之 XML 項目的 XML 命名空間。

extensionPoint1
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint2
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint3
Type

要於其上執行服務描述格式延伸的延伸點。

extensionPoint4
Type

要於其上執行服務描述格式延伸的延伸點。

適用於