WebPartPermission.FromXml Method
NOTE: This API is now obsolete.
Reconstructs a WebPartPermission from an XML encoding.
Namespace: Microsoft.SharePoint.Security
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
Syntax
'Declaration
<ObsoleteAttribute("Web Part permissions are obsolete and no longer required")> _
Public Overrides Sub FromXml ( _
securityElement As SecurityElement _
)
'Usage
Dim instance As WebPartPermission
Dim securityElement As SecurityElement
instance.FromXml(securityElement)
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")]
public override void FromXml(
SecurityElement securityElement
)
Parameters
securityElement
Type: System.Security.SecurityElementThe XML encoding from which to reconstruct the WebPartPermission.
Implements
ISecurityEncodable.FromXml(SecurityElement)
Remarks
Exceptions
Exception Type |
Condition |
---|---|
ArgumentException |
The securityElement is not of type WebPartPermission. |
ArgumentNullException |
The securityElement parameter is a null reference (Nothing in Visual Basic). |