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 | |
|---|---|---|
| .gif) | TfsGitObject(TfsGitRepository, TfsGitObjectType, array<Byte[]) | |
| .gif) | TfsGitObject(TfsGitRepository, TfsGitObjectType, array<Byte[], Int64) | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ObjectId | The 20-byte SHA-1 hash of this object. | 
| .gif) | ObjectType | The type of this object. | 
| .gif) | Repository | The repository in which this object exists. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) .gif) | ConvertToLocalTime | Convert DateTime to local time using specified offset. If no offset is supplied, use server time. | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetContent | Gets the content for this object from the owning repository. | 
| .gif) | GetContentBytes | Gets the content for this object from the owning repository. | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetLength | Gets the length for this object from the owning repository. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | (Overrides Object.ToString().) | 
| .gif) .gif) | TryParseIdentity | 
Top
Extension Methods
| Name | Description | |
|---|---|---|
| .gif) | GetResolvableObjectType | (Defined by Extensions.) | 
| .gif) | ResolveToCommit | (Defined by Extensions.) | 
| .gif) | TryResolveToCommit | (Defined by Extensions.) | 
Top
Fields
| Name | Description | |
|---|---|---|
| .gif) .gif) | c_materializationLimit | |
| .gif) .gif) | c_utcEpoch | |
| .gif) | m_objectId | |
| .gif) | m_objectType | |
| .gif) | 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.