This documentation is archived and is not being maintained.

SecurityElement.Text Property

Gets or sets the text within an XML element.

[Visual Basic]
Public Property Text As String
public string Text {get; set;}
public: __property String* get_Text();
public: __property void set_Text(String*);
public function get Text() : String;
public function set Text(String);

Property Value

The value of the text within an XML element.


Exception Type Condition
ArgumentException The text is not valid in XML.


The text should not contain XML special characters. Use Escape to remove invalid characters from the string.

If a SecurityElement contains both Text and Children, Text will appear first.


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