SecurityElement Constructor (String^, String^)

 

Initializes a new instance of the SecurityElement class with the specified tag and text.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
SecurityElement(
	String^ tag,
	String^ text
)

Parameters

tag
Type: System::String^

The tag name of the XML element.

text
Type: System::String^

The text content within the element.

Exception Condition
ArgumentNullException

The tag parameter is null.

ArgumentException

The tag parameter or text parameter is invalid in XML.

If the text parameter is null this constructor produces an element identical to the default constructor.

.NET Framework
Available since 1.1
Return to top
Show: