The FromXml method of the WebPartPermission class reconstructs a WebPartPermission from an XML encoding.
Parameters
securityElement The XML encoding from which to reconstruct the WebPartPermission.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The securityElement parameter is a null reference (Nothing in Visual Basic). |
| ArgumentException | The securityElement is not of type WebPartPermission. |
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security