Share via


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.

Implements

ISecurityEncodable.ToXml()

See also

Reference

WebPartPermission class

WebPartPermission members

Microsoft.SharePoint.Security namespace