SecurityElement Constructor (String, String)
Collapse the table of content
Expand the table of content

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:
© 2016 Microsoft