Share via


GitModelExtensions.ToGitRepository 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 ToGitRepository ( _
    repositoryInfo As TfsGitRepositoryInfo, _
    project As CommonStructureProjectInfo, _
    collectionUrl As String _
) As GitRepository
public static GitRepository ToGitRepository(
    this TfsGitRepositoryInfo repositoryInfo,
    CommonStructureProjectInfo project,
    string collectionUrl
)
[ExtensionAttribute]
public:
static GitRepository^ ToGitRepository(
    TfsGitRepositoryInfo^ repositoryInfo, 
    CommonStructureProjectInfo^ project, 
    String^ collectionUrl
)
static member ToGitRepository : 
        repositoryInfo:TfsGitRepositoryInfo * 
        project:CommonStructureProjectInfo * 
        collectionUrl:string -> GitRepository
public static function ToGitRepository(
    repositoryInfo : TfsGitRepositoryInfo, 
    project : CommonStructureProjectInfo, 
    collectionUrl : String
) : 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 TfsGitRepositoryInfo. 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