TfsGitObject Class

Base class for objects in a Git repository.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Git.Server.TfsGitObject
    Microsoft.TeamFoundation.Git.Server.TfsGitBlob
    Microsoft.TeamFoundation.Git.Server.TfsGitCommit
    Microsoft.TeamFoundation.Git.Server.TfsGitTag
    Microsoft.TeamFoundation.Git.Server.TfsGitTree

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

Syntax

'Declaration
Public MustInherit Class TfsGitObject
public abstract class TfsGitObject
public ref class TfsGitObject abstract
[<AbstractClass>]
type TfsGitObject =  class end
public abstract class TfsGitObject

The TfsGitObject type exposes the following members.

Constructors

  Name Description
Public method TfsGitObject(TfsGitRepository, TfsGitObjectType, array<Byte[])
Public method TfsGitObject(TfsGitRepository, TfsGitObjectType, array<Byte[], Int64)

Top

Properties

  Name Description
Public property ObjectId The 20-byte SHA-1 hash of this object.
Public property ObjectType The type of this object.
Public property Repository The repository in which this object exists.

Top

Methods

  Name Description
Protected methodStatic member ConvertToLocalTime Convert DateTime to local time using specified offset. If no offset is supplied, use server time.
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 GetContent Gets the content for this object from the owning repository.
Public method GetContentBytes Gets the content for this object from the owning repository.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLength Gets the length for this object from the owning repository.
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 (Overrides Object.ToString().)
Protected methodStatic member TryParseIdentity

Top

Extension Methods

  Name Description
Public Extension Method GetResolvableObjectType (Defined by Extensions.)
Public Extension Method ResolveToCommit (Defined by Extensions.)
Public Extension Method TryResolveToCommit (Defined by Extensions.)

Top

Fields

  Name Description
Protected fieldStatic member c_materializationLimit
Protected fieldStatic member c_utcEpoch
Protected field m_objectId
Protected field m_objectType
Protected field m_repository

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