SecurityElement::FromString Method (String^)
.NET Framework (current version)
Creates a security element from an XML-encoded string.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- xml
-
Type:
System::String^
The XML-encoded string from which to create the security element.
| Exception | Condition |
|---|---|
| XmlSyntaxException | xml contains one or more single quotation mark characters. |
| ArgumentNullException | xml is null. |
Do not use single quotation marks in the XML string; instead, use escaped double quotation marks. For example, instead of "<value name='Company'>Microsoft</value>" use "<value name=\"Company\">Microsoft</value>".
Using single quotation marks can result in either an exception being thrown or, in some cases, the single quotation marks being treated as text in the string.
.NET Framework
Available since 2.0
Available since 2.0
Show: