SPRoleDefinition.Xml Property
Gets the permissions for the role definition in XML format.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Xml As String
Get
'Usage
Dim instance As SPRoleDefinition
Dim value As String
value = instance.Xml
public string Xml { get; }
Property Value
Type: System.String
A string that contains the permissions in XML format. For example, the XML property returns the following role definition for the Contribute permission level:
<Role ID="1073741827" Name="Contribute" Description="Can view, add, update, and delete." Order="0" Hidden="False" Type="Contributor" BasePermissions="ViewListItems, AddListItems, EditListItems, DeleteListItems, OpenItems, ViewVersions, DeleteVersions, ManagePersonalViews, ViewFormPages, Open, ViewPages, CreateSSCSite, BrowseDirectories, BrowseUserInfo, AddDelPrivateWebParts, UpdatePersonalWebParts, UseClientIntegration, UseRemoteAPIs, CreateAlerts, EditMyUserInfo" />