SPRole.Description property
NOTE: This API is now obsolete.
請改用新的SPRoleDefinition和SPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Description屬性傳回或設定角色的描述和維護回溯相容性。)
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use the SPRoleDefinition class instead")> _
Public Property Description As String
Get
Set
'用途
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
字串,包含描述。
備註
Description屬性需要在資料庫中的效果變更Update方法的使用方式。