ToXml Method
The ToXml method of the WebPartPermission class creates an XML encoding of the permission object and its current state.
Return Value
System.Security.SecurityElement An XML encoding of the permission object, including any state information.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security