System.Security.Policy.GacMembershipCondition.ToXml Method

Creates an XML encoding of the security object and its current state, using the specified policy level context.

Syntax

public System.Security.SecurityElement ToXml (PolicyLevel level)

Parameters

level
The System.Security.Policy.PolicyLevel context for resolving System.Security.NamedPermissionSet references.

Returns

A System.Security.SecurityElement that contains the XML encoding of the security object, including any state information.

Remarks

The policy level context is provided for resolution of named permission set references. For example, code groups use policy level to find named permission sets.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0