DefaultSecurityNamespaceExtension.HasReadPermission Method
The default implementation of HasReadPermission, which checks to see whether the caller has ReadPermission 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 HasReadPermission ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
accessControlEntries As IEnumerable(Of AccessControlEntry) _
) As Boolean
public virtual bool HasReadPermission(
TeamFoundationRequestContext requestContext,
string token,
IEnumerable<AccessControlEntry> accessControlEntries
)
public:
virtual bool HasReadPermission(
TeamFoundationRequestContext^ requestContext,
String^ token,
IEnumerable<AccessControlEntry^>^ accessControlEntries
)
abstract HasReadPermission :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntries:IEnumerable<AccessControlEntry> -> bool
override HasReadPermission :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntries:IEnumerable<AccessControlEntry> -> bool
public function HasReadPermission(
requestContext : TeamFoundationRequestContext,
token : String,
accessControlEntries : IEnumerable<AccessControlEntry>
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- token
Type: System.String
- accessControlEntries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>
Return Value
Type: System.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.