SharePointPermission.FromXml Method
Reconstructs a SharePointPermission object from an XML encoding.
Namespace: Microsoft.SharePoint.Security
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
Syntax
'Declaration
Public Overrides Sub FromXml ( _
securityElement As SecurityElement _
)
'Usage
Dim instance As SharePointPermission
Dim securityElement As SecurityElement
instance.FromXml(securityElement)
public override void FromXml(
SecurityElement securityElement
)
Parameters
securityElement
Type: System.Security.SecurityElementThe XML encoding from which to reconstruct the SharePointPermission.
Implements
ISecurityEncodable.FromXml(SecurityElement)
Remarks
Exceptions
ExceptionType |
Condition |
---|---|
ArgumentNullException |
The securityElement parameter is a null reference (Nothing in Visual Basic). |
ArgumentException |
The securityElement is not of type SharePointPermission. |