DefaultSecurityNamespaceExtension.HasWritePermission Method
The default implementation of [HasWritePermission], which checks to see whether the caller has [SecurityNamespace.Description.WritePermission] on the provided token.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
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
)
public:
virtual bool HasWritePermission(
TeamFoundationRequestContext^ requestContext,
String^ token,
IEnumerable<AccessControlEntry^>^ removedEntries,
IEnumerable<AccessControlEntry^>^ addedEntries,
bool inheritanceChanging,
bool recurse
)
abstract HasWritePermission :
requestContext:TeamFoundationRequestContext *
token:string *
removedEntries:IEnumerable<AccessControlEntry> *
addedEntries:IEnumerable<AccessControlEntry> *
inheritanceChanging:bool *
recurse:bool -> bool
override HasWritePermission :
requestContext:TeamFoundationRequestContext *
token:string *
removedEntries:IEnumerable<AccessControlEntry> *
addedEntries:IEnumerable<AccessControlEntry> *
inheritanceChanging:bool *
recurse:bool -> bool
public function HasWritePermission(
requestContext : TeamFoundationRequestContext,
token : String,
removedEntries : IEnumerable<AccessControlEntry>,
addedEntries : IEnumerable<AccessControlEntry>,
inheritanceChanging : boolean,
recurse : boolean
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- token
Type: System.String
- removedEntries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
- addedEntries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
- inheritanceChanging
Type: System.Boolean
- recurse
Type: System.Boolean
Return Value
Type: System.Boolean
Returns Boolean.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.