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
[C#]
public string Text {get; set;}
[C++]
public: __property String* get_Text();
public: __property void set_Text(String*);
[JScript]
public function get Text() : String;
public function set Text(String);

Property Value

The value of the text within an XML element.

Exceptions

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

Remarks

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.

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: