Поделиться через


ISecurityNamespaceExtension.HasReadPermission 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.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Function HasReadPermission ( _
    requestContext As TeamFoundationRequestContext, _
    token As String, _
    accessControlEntries As IEnumerable(Of AccessControlEntry) _
) As Boolean
bool HasReadPermission(
    TeamFoundationRequestContext requestContext,
    string token,
    IEnumerable<AccessControlEntry> accessControlEntries
)
bool HasReadPermission(
    TeamFoundationRequestContext^ requestContext, 
    String^ token, 
    IEnumerable<AccessControlEntry^>^ accessControlEntries
)
abstract HasReadPermission : 
        requestContext:TeamFoundationRequestContext * 
        token:string * 
        accessControlEntries:IEnumerable<AccessControlEntry> -> bool
function HasReadPermission(
    requestContext : TeamFoundationRequestContext, 
    token : String, 
    accessControlEntries : IEnumerable<AccessControlEntry>
) : boolean

Parameters

  • token
    Type: System.String

    The token the permissions are being read on.

Return Value

Type: System.Boolean
True if the user can read these permissions, false otherwise.

.NET Framework Security

See Also

Reference

ISecurityNamespaceExtension Interface

Microsoft.TeamFoundation.Framework.Server Namespace