SPRoleCollection.Remove method (Int32)
NOTE: This API is now obsolete.
已過時。請改用新的SPRoleDefinition和SPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Remove方法在集合中移除指定索引處的角色和維護回溯相容性。)
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Sub Remove ( _
index As Integer _
)
'用途
Dim instance As SPRoleCollection
Dim index As Integer
instance.Remove(index)
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public void Remove(
int index
)
參數
index
Type: System.Int32指定的索引為 32 位元整數。