TfsGitRepositoryRefsCollection Class

Represents the set of refs for a given TFS Git repository.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Git.Server.TfsGitRepositoryRefsCollection

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

Syntax

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

The TfsGitRepositoryRefsCollection type exposes the following members.

Methods

  Name Description
Public method All Returns all refs in the repository.
Public method AllRefHeads Returns all ref heads in the repository.
Public method AllRefNotes Returns all ref notes in the repository.
Public method AllRefTags Returns all ref tags in the repository.
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.)
Public methodStatic member IsNoteRef
Public methodStatic member IsTagRef
Public method MatchingName Returns the ref in the repository matching the provided name, or null if no such ref is found.
Public method MatchingNames Returns the refs in the repository whose name is in the provided list.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RefNotesInNamespace Returns all ref notes in the repository for a given namespace
Public method SetHead Given the name of an existing ref in the repository, sets the HEAD pointer for the repository to that ref. If the ref does not exist, a GitRefNotFoundException will be thrown.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write(TeamFoundationRequestContext, TfsGitRefUpdateRequest, IEnumerable<array<Byte[]>, DateTime%) Writes the provided ref to the repository.
Public method Write(TeamFoundationRequestContext, IEnumerable<TfsGitRefUpdateRequest>, IEnumerable<array<Byte[]>, DateTime%) Writes the provided set of refs to the repository.

Top

Extension Methods

  Name Description
Public Extension Method GetFilteredRefs (Defined by Extensions.)

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