Share via


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

  • token
    Type: System.String

    The token the permissions are being read on.

.NET Framework Security

See Also

Reference

ISecurityNamespaceExtension Interface

Microsoft.TeamFoundation.Framework.Server Namespace