SecurityElement Constructor (String^, String^)
.NET Framework (current version)
Initializes a new instance of the SecurityElement class with the specified tag and text.
Assembly: mscorlib (in mscorlib.dll)
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
Available since 1.1
Show: