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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextRequest context to use to perform the request.
repositoryInfo
Type: Microsoft.TeamFoundation.Git.Server.TfsGitRepositoryInfoThe TfsGitRepositoryInfo object to "upgrade" into a TfsGitRepository.
Return Value
Type: Microsoft.TeamFoundation.Git.Server.TfsGitRepository
A TfsGitRepository object
.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.