共用方式為


SecurityWebService.SetPermissions 方法

將識別設定的使用權限在系統中。 如果合併指定,並找到既有輸入兩個使用權限要合併。 當合併使用權限時,新使用權限將優先於舊的使用權限,則如果位元衝突。 移除這個內容表示位元移除使用權限的不是使用權限 themself。 當移除在中設定的所有位元才允許或拒絕將移除。

命名空間:  Microsoft.TeamFoundation.Server.Core.WebServices
組件:  Microsoft.TeamFoundation.Server.Core (在 Microsoft.TeamFoundation.Server.Core.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function SetPermissions ( _
    namespaceId As Guid, _
    token As String, _
    accessControlEntries As List(Of AccessControlEntryDetails), _
    merge As Boolean _
) As List(Of AccessControlEntryDetails)
[WebMethodAttribute]
public List<AccessControlEntryDetails> SetPermissions(
    Guid namespaceId,
    string token,
    List<AccessControlEntryDetails> accessControlEntries,
    bool merge
)

參數

  • namespaceId
    類型:System.Guid
    進行這些變更的命名空間。
  • token
    類型:System.String
    設定使用權限的語彙基元。
  • merge
    類型:System.Boolean
    表示使用權限位元應該合併,則為 true。

傳回值

類型:System.Collections.Generic.List<AccessControlEntryDetails>

.NET Framework 安全性

請參閱

參考

SecurityWebService 類別

Microsoft.TeamFoundation.Server.Core.WebServices 命名空間