ForElementAttribute Class

Marks a class to be bound with the XML element.

C#
[AttributeUsage(System.AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class ForElementAttribute : Attribute
Inheritance
ForElementAttribute
Attributes

Constructors

ForElementAttribute(string, string)

Initializes a new instance of the ForElementAttribute class.

Properties

QName

Gets the qualified name of the element.

Methods

Equals(object) (Inherited from Attribute)
GetHashCode() (Inherited from Attribute)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

ForElementAttribute(string, string)

Initializes a new instance of the ForElementAttribute class.

C#
public ForElementAttribute(string name, [string ns = ""])

Parameters

name
string

The element name.

ns
string

The namespace URI.

Properties Detail

QName

Gets the qualified name of the element.

C#
public XmlQualifiedName QName { get; }

Property Value