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
public string Tag {get; set;}
public: __property String* get_Tag();
public: __property void set_Tag(String*);
public function get Tag() : String;
public function set Tag(String);

Property Value

The tag name of an XML element.


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


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.


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

© 2016 Microsoft