Repository.UpdateItemSecurity 方法
修改项目的安全信息。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
<WebMethodAttribute> _
Public Function UpdateItemSecurity ( _
workspaceName As String, _
workspaceOwner As String, _
changes As SecurityChange(), _
<OutAttribute> ByRef failures As List(Of Failure) _
) As List(Of SecurityChange)
[WebMethodAttribute]
public List<SecurityChange> UpdateItemSecurity(
string workspaceName,
string workspaceOwner,
SecurityChange[] changes,
out List<Failure> failures
)
参数
- workspaceName
类型:System.String
- workspaceOwner
类型:System.String
- changes
类型:array<Microsoft.TeamFoundation.VersionControl.Server.SecurityChange[]
应用的某些更改。
- failures
类型:System.Collections.Generic.List<Failure>%
发生应用每项更改的错误。
返回值
类型:System.Collections.Generic.List<SecurityChange>
某些成功的更改。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。