Partager via


TeamFoundationGitRepositoryService.RepositoryFromRepositoryInfo Method

Given a TfsGitRepositoryInfo data structure object, returns a full TfsGitRepository object that can be used to perform actions.

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

Syntax

'Declaration
Public Function RepositoryFromRepositoryInfo ( _
    requestContext As TeamFoundationRequestContext, _
    repositoryInfo As TfsGitRepositoryInfo _
) As TfsGitRepository
public TfsGitRepository RepositoryFromRepositoryInfo(
    TeamFoundationRequestContext requestContext,
    TfsGitRepositoryInfo repositoryInfo
)
public:
TfsGitRepository^ RepositoryFromRepositoryInfo(
    TeamFoundationRequestContext^ requestContext, 
    TfsGitRepositoryInfo^ repositoryInfo
)
member RepositoryFromRepositoryInfo : 
        requestContext:TeamFoundationRequestContext * 
        repositoryInfo:TfsGitRepositoryInfo -> TfsGitRepository
public function RepositoryFromRepositoryInfo(
    requestContext : TeamFoundationRequestContext, 
    repositoryInfo : TfsGitRepositoryInfo
) : TfsGitRepository

Parameters

Return Value

Type: Microsoft.TeamFoundation.Git.Server.TfsGitRepository
A TfsGitRepository object

.NET Framework Security

See Also

Reference

TeamFoundationGitRepositoryService Class

Microsoft.TeamFoundation.Git.Server Namespace