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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。