NetworkInformationPermission.FromXml Method (SecurityElement)

 

Sets the state of this permission using the specified XML encoding.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public override void FromXml(
	SecurityElement securityElement
)

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
Return to top
Show: