共用方式為


SPPolicy.SPPolicyRoleBindingCollection.AddById method

將指定的 guid 的原則角色新增至繫結集合。

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

Syntax

'宣告
Public Sub AddById ( _
    id As Guid _
)
'用途
Dim instance As SPPolicy.SPPolicyRoleBindingCollection
Dim id As Guid

instance.AddById(id)
public void AddById(
    Guid id
)

參數

  • id
    Type: System.Guid

    指定要新增至集合中的原則角色System.Guid物件。

請參閱

參照

SPPolicy.SPPolicyRoleBindingCollection class

SPPolicy.SPPolicyRoleBindingCollection members

Microsoft.SharePoint.Administration namespace