次の方法で共有


SPRole.Description property

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 Description property returned or set the description for the role and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public Property Description As String
    Get
    Set
'Usage
Dim instance As SPRole
Dim value As String

value = instance.Description

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

Property value

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

Remarks

The Description property requires use of the Update method to effect changes in the database.

See also

Reference

SPRole class

SPRole members

Microsoft.SharePoint namespace