ISecurityNamespaceExtension.CheckReadPermission Method
Evaluates whether the given user should be able to read the permissions for the given token.
Note that implementing this function will cause the ReadPermission defined in the namespace not to be checked. If you want to implement this interface and still have those checked then make sure to derive from the DefaultSecurityNamespaceExtension and not override this method.
This method should throw some type of access exception if the user does not have read permission on this token.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Sub CheckReadPermission ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
accessControlEntries As IEnumerable(Of AccessControlEntry) _
)
void CheckReadPermission(
TeamFoundationRequestContext requestContext,
string token,
IEnumerable<AccessControlEntry> accessControlEntries
)
void CheckReadPermission(
TeamFoundationRequestContext^ requestContext,
String^ token,
IEnumerable<AccessControlEntry^>^ accessControlEntries
)
abstract CheckReadPermission :
requestContext:TeamFoundationRequestContext *
token:string *
accessControlEntries:IEnumerable<AccessControlEntry> -> unit
function CheckReadPermission(
requestContext : TeamFoundationRequestContext,
token : String,
accessControlEntries : IEnumerable<AccessControlEntry>
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context for the current request which contains the user trying to perform the action.
token
Type: System.StringThe token the permissions are being read on.
accessControlEntries
Type: System.Collections.Generic.IEnumerable<AccessControlEntry>The entries that will be returned.
.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.