WebPartPermission.ToXml Method
NOTE: This API is now obsolete.
Creates an XML encoding of the permission object and its current state.
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 Function ToXml As SecurityElement
'Usage
Dim instance As WebPartPermission
Dim returnValue As SecurityElement
returnValue = instance.ToXml()
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")]
public override SecurityElement ToXml()
Return Value
Type: System.Security.SecurityElement
System.Security.SecurityElement An XML encoding of the permission object, including any state information.