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