Share via


SPRole.ToString Method

NOTE: This API is now 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 ToString method returned the name of the role 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 SPRoleDefinition class instead")> _
Public Overrides Function ToString As String
'Usage
Dim instance As SPRole
Dim returnValue As String

returnValue = instance.ToString()
[ObsoleteAttribute("Use the SPRoleDefinition class instead")]
public override string ToString()

Return Value

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

See Also

Reference

SPRole Class

SPRole Members

Microsoft.SharePoint Namespace