Share via


TeamFoundationGitRepositoryService.HasReadPermission Method

Checks the provided request context to ensure that it has permission to view the set of Git repositories on this service host.

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

Syntax

'Declaration
Public Function HasReadPermission ( _
    requestContext As TeamFoundationRequestContext, _
    uri As String, _
    repositoryId As Guid, _
    alwaysAllowAdministrators As Boolean _
) As Boolean
public bool HasReadPermission(
    TeamFoundationRequestContext requestContext,
    string uri,
    Guid repositoryId,
    bool alwaysAllowAdministrators
)
public:
bool HasReadPermission(
    TeamFoundationRequestContext^ requestContext, 
    String^ uri, 
    Guid repositoryId, 
    bool alwaysAllowAdministrators
)
member HasReadPermission : 
        requestContext:TeamFoundationRequestContext * 
        uri:string * 
        repositoryId:Guid * 
        alwaysAllowAdministrators:bool -> bool
public function HasReadPermission(
    requestContext : TeamFoundationRequestContext, 
    uri : String, 
    repositoryId : Guid, 
    alwaysAllowAdministrators : boolean
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

TeamFoundationGitRepositoryService Class

Microsoft.TeamFoundation.Git.Server Namespace