This documentation is archived and is not being maintained.

TfsGitObject Class

Visual Studio 2013

Base class for objects in a Git repository.

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

'Declaration
Public MustInherit Class TfsGitObject

The TfsGitObject type exposes the following members.

  NameDescription
Public propertyObjectIdThe 20-byte SHA-1 hash of this object.
Public propertyObjectTypeThe type of this object.
Public propertyRepositoryThe repository in which this object exists.
Top

  NameDescription
Protected methodStatic memberConvertToLocalTimeConvert DateTime to local time using specified offset. If no offset is supplied, use server time.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetContentGets the content for this object from the owning repository.
Public methodGetContentBytesGets the content for this object from the owning repository.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLengthGets the length for this object from the owning repository.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString (Overrides Object.ToString.)
Protected methodStatic memberTryParseIdentity
Top

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