Поделиться через


TfsGitRepositoryInfo Class

A simple data structure that has a Git repository ID, name and teamProjectUri.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Git.Server.TfsGitRepositoryInfo

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

Syntax

'Declaration
Public Class TfsGitRepositoryInfo
public class TfsGitRepositoryInfo
public ref class TfsGitRepositoryInfo
type TfsGitRepositoryInfo =  class end
public class TfsGitRepositoryInfo

The TfsGitRepositoryInfo type exposes the following members.

Properties

  Name Description
Public property DefaultBranch Returns the default branch for this repository
Public property Name Every Git repository has a name. The name is unique in the scope of the collection.
Public property RepositoryId A Team Project Collection may contain multiple Git repositories. They are differentiated by their name as well as by their repository ID.
Public property TeamProjectUri The uri for the team project that owns this Git Repository. Currently, a team project can only have one Git Repository

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Git.Server Namespace