System.Security.Permissions.StorePermission.ToXml Method

Creates an XML encoding of the permission and its current state.

Syntax

public override System.Security.SecurityElement ToXml ()

Returns

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

Remarks

Use the StorePermission.FromXml(System.Security.SecurityElement) method to restore the state information from a System.Security.SecurityElement.

Requirements

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