共用方式為


TeamFoundationVersionControlService.UpdateItemSecurity 方法

修改項目的安全性資訊。

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

語法

'宣告
Public Function UpdateItemSecurity ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    changes As SecurityChange() _
) As TeamFoundationDataReader
public TeamFoundationDataReader UpdateItemSecurity(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    SecurityChange[] changes
)

參數

  • workspaceName
    類型:System.String
    工作區名稱,則為,如果區域路徑所指定。可能是 Null。
  • workspaceOwner
    類型:System.String
    工作區的擁有人。可能是 Null。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 在下列順序:SecurityChange [-部分成功的變更。會將每個變更失敗 [-失敗。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間