DefaultSecurityNamespaceExtension.HasWritePermission 方法
[HasWritePermission]的預設實作,會檢查呼叫端是否具有在提供的語彙基元 [SecurityNamespace.Description.WritePermission] 。
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Overridable Function HasWritePermission ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
removedEntries As IEnumerable(Of AccessControlEntry), _
addedEntries As IEnumerable(Of AccessControlEntry), _
inheritanceChanging As Boolean, _
recurse As Boolean _
) As Boolean
public virtual bool HasWritePermission(
TeamFoundationRequestContext requestContext,
string token,
IEnumerable<AccessControlEntry> removedEntries,
IEnumerable<AccessControlEntry> addedEntries,
bool inheritanceChanging,
bool recurse
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- token
型別:System.String
- removedEntries
型別:System.Collections.Generic.IEnumerable<AccessControlEntry>
- addedEntries
型別:System.Collections.Generic.IEnumerable<AccessControlEntry>
- inheritanceChanging
型別:System.Boolean
- recurse
型別:System.Boolean
傳回值
型別:System.Boolean
傳回 Boolean。
實作
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。