Condividi tramite


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

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).

See Also

Reference

WebPartPermission Class

WebPartPermission Members

Microsoft.SharePoint.Security Namespace