PnrpPermission::FromXml Method (SecurityElement^)

 

Reconstructs a security object with a specified state from an XML encoding.

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

public:
virtual void FromXml(
	SecurityElement^ e
) override

Parameters

e
Type: System.Security::SecurityElement^

The XML encoding to use to reconstruct the permission.

Exception Condition
ArgumentException
  • The parameter is not a valid PnrpPermission element.

  • The parameter's version number is not supported.

ArgumentNullException

The parameter is a null reference (Nothing in Visual Basic).

Represents the XML object model for encoding security objects. This class cannot be inherited.

This class is intended to be a lightweight implementation of a simple XML object model for use within the security system, and not for use as a general XML object model.

.NET Framework
Available since 3.5
Return to top
Show: