This documentation is archived and is not being maintained.

PeerCollaborationPermission.FromXml Method

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.

Implements

ISecurityEncodable.FromXml(SecurityElement)

ExceptionCondition
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

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: