Partilhar via


SPRoleCollection.Xml Property

NOTE: This API is now obsolete.

Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization Object Model. (In Windows SharePoint Services 2.0, the Xml property returned the collection of roles in XML format and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public ReadOnly Property Xml As String
    Get
'Usage
Dim instance As SPRoleCollection
Dim value As String

value = instance.Xml
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public string Xml { get; }

Property Value

Type: System.String
A string that contains the XML.

See Also

Reference

SPRoleCollection Class

SPRoleCollection Members

Microsoft.SharePoint Namespace