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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context to check.
- uri
Type: System.String
- repositoryId
Type: System.Guid
- alwaysAllowAdministrators
Type: System.Boolean
Return Value
Type: System.Boolean
.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.