PeerCollaborationPermission.FromXml Method (SecurityElement)

 

Represents the XML object model for encoding security objects.

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

public override void FromXml(
	SecurityElement e
)

Parameters

e
Type: System.Security.SecurityElement

The XML encoding to use to reconstruct the permission.

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

  • The parameter does not contain a valid type or class.

  • The parameter's version number is not supported.

ArgumentNullException

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

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.

This class cannot be inherited.

.NET Framework
Available since 3.5
Return to top
Show: