Share via


GitModelExtensions.ToRepository Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.TeamFoundation.SourceControl.WebApi
Assembly:  Microsoft.TeamFoundation.SourceControl.WebApi (in Microsoft.TeamFoundation.SourceControl.WebApi.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToRepository ( _
    repository As TfsGitRepository, _
    requestContext As TeamFoundationRequestContext, _
    project As CommonStructureProjectInfo _
) As GitRepository
public static GitRepository ToRepository(
    this TfsGitRepository repository,
    TeamFoundationRequestContext requestContext,
    CommonStructureProjectInfo project
)
[ExtensionAttribute]
public:
static GitRepository^ ToRepository(
    TfsGitRepository^ repository, 
    TeamFoundationRequestContext^ requestContext, 
    CommonStructureProjectInfo^ project
)
static member ToRepository : 
        repository:TfsGitRepository * 
        requestContext:TeamFoundationRequestContext * 
        project:CommonStructureProjectInfo -> GitRepository
public static function ToRepository(
    repository : TfsGitRepository, 
    requestContext : TeamFoundationRequestContext, 
    project : CommonStructureProjectInfo
) : GitRepository

Parameters

Return Value

Type: GitRepository

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TfsGitRepository. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

GitModelExtensions Class

Microsoft.TeamFoundation.SourceControl.WebApi Namespace