Tag Property
Collapse the table of content
Expand the table of content

SecurityElement.Tag Property

Gets or sets the tag name of an XML element.

[Visual Basic]
Public Property Tag As String
[C#]
public string Tag {get; set;}
[C++]
public: __property String* get_Tag();
public: __property void set_Tag(String*);
[JScript]
public function get Tag() : String;
public function set Tag(String);

Property Value

The tag name of an XML element.

Exceptions

Exception Type Condition
ArgumentNullException The tag is a null reference (Nothing in Visual Basic).
ArgumentException The tag is not valid in XML.

Remarks

In XML, the tag appears in the script as appears below:

<tag attributes>text</tag>

If this element has child elements, the children will replace text.

Assign only valid XML tag strings to this property. Use Escape to remove invalid characters from the string.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SecurityElement Class | SecurityElement Members | System.Security Namespace

Show:
© 2016 Microsoft