NetworkInformationPermission::FromXml Method (SecurityElement^)
.NET Framework (current version)
Sets the state of this permission using the specified XML encoding.
Assembly: System (in System.dll)
Parameters
- securityElement
-
Type:
System.Security::SecurityElement^
A SecurityElement that contains the XML encoding to use to set the state of the current permission
| Exception | Condition |
|---|---|
| ArgumentNullException | securityElement is null. |
| ArgumentException | securityElement is not a permission encoding. -or- securityElement is not an encoding of a NetworkInformationPermission. -or- securityElement has invalid NetworkInformationAccess values. |
This method is used by the security system and is not normally called by application code.
.NET Framework
Available since 2.0
Available since 2.0
Show: