System.Security.Policy.CodeGroup.ToXml Method

Creates an XML encoding of the security object, its current state, and the policy level within which the code exists.

Syntax

public System.Security.SecurityElement ToXml (PolicyLevel level)

Parameters

level
The policy level within which the code group exists.

Returns

An XML encoding of the security object, including any state information.

Remarks

The policy level context is provided for resolution of named permission sets.

Requirements

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