SPRoleCollection.Remove 方法 (String)

请注意:此 API 现在已过时。

Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Changes in the Authorization Object Model. (In Windows SharePoint Services 2.0, the Remove method removed the role with the specified name from the collection and is maintained for backward compatibility.)

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Sub Remove ( _
    name As String _
)
用法
Dim instance As SPRoleCollection
Dim name As String

instance.Remove(name)
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public void Remove(
    string name
)

参数

  • name
    类型:System.String

    一个字符串,包含的名称。

另请参阅

引用

SPRoleCollection 类

SPRoleCollection 成员

Remove 重载

Microsoft.SharePoint 命名空间