XmlFormatExtensionAttribute Constructors

Definition

Initializes a new instance of the XmlFormatExtensionAttribute class.

Overloads

XmlFormatExtensionAttribute()

Initializes a new instance of the XmlFormatExtensionAttribute class.

XmlFormatExtensionAttribute(String, String, Type)

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension point.

XmlFormatExtensionAttribute(String, String, Type[])

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

XmlFormatExtensionAttribute(String, String, Type, Type)

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

XmlFormatExtensionAttribute()

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class.

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

Applies to

XmlFormatExtensionAttribute(String, String, Type)

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension point.

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)

Parameters

elementName
String

The XML element added to the service description by the service description format extension.

ns
String

The XML namespace for the XML element added to the service description by the service description format extension.

extensionPoint1
Type

The extension point at which to run the service description format extension.

Examples

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

Applies to

XmlFormatExtensionAttribute(String, String, Type[])

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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())

Parameters

elementName
String

The XML element added to the service description by the service description format extension.

ns
String

The XML namespace for the XML element added to the service description by the service description format extension.

extensionPoints
Type[]

An array of extension points at which to run the service description format extension.

Applies to

XmlFormatExtensionAttribute(String, String, Type, Type)

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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)

Parameters

elementName
String

The XML element added to the service description by the service description format extension.

ns
String

The XML namespace for the XML element added to the service description by the service description format extension.

extensionPoint1
Type

An extension point at which to run the service description format extension.

extensionPoint2
Type

An extension point at which to run the service description format extension.

Applies to

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

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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)

Parameters

elementName
String

The XML element added to the service description by the service description format extension.

ns
String

The XML namespace for the XML element added to the service description by the service description format extension.

extensionPoint1
Type

An extension point at which to run the service description format extension.

extensionPoint2
Type

An extension point at which to run the service description format extension.

extensionPoint3
Type

An extension point at which to run the service description format extension.

Applies to

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

Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs
Source:
XmlFormatExtensionAttribute.cs

Initializes a new instance of the XmlFormatExtensionAttribute class that specifies the XML element and namespace to add when running at the specified extension points.

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)

Parameters

elementName
String

The XML element added to the service description by the service description format extension.

ns
String

The XML namespace for the XML element added to the service description by the service description format extension.

extensionPoint1
Type

An extension point at which to run the service description format extension.

extensionPoint2
Type

An extension point at which to run the service description format extension.

extensionPoint3
Type

An extension point at which to run the service description format extension.

extensionPoint4
Type

An extension point at which to run the service description format extension.

Applies to