GitObjectReference Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a shallow reference to a Git object for serialization
[System.Runtime.Serialization.DataContract]
public class GitObjectReference : Microsoft.TeamFoundation.SourceControl.WebApi.Legacy.Entity
type GitObjectReference = class
inherit Entity
Public Class GitObjectReference
Inherits Entity
- Inheritance
- Attributes
Examples
A GitCommit may have several parents, represented by a list of GitObjectReference instances. This list would be serialized to JSON as something like "parents": [ { "objectId": "25c12518372b4a18f1b9d85f83ae01097604dc88", "url": "http://my-tfs-server/_apis/git/commits/25c12518372b4a18f1b9d85f83ae01097604dc88" } ]
Constructors
| GitObjectReference() |
Properties
| Name | |
| ObjectId | |
| Url | (Inherited from Entity) |
Methods
| SetSecuredObject(ISecuredObject) |
Explicit Interface Implementations
| ISecuredObject.GetToken() | (Inherited from VersionControlSecuredObject) |
| ISecuredObject.NamespaceId | (Inherited from VersionControlSecuredObject) |
| ISecuredObject.RequiredPermissions | (Inherited from VersionControlSecuredObject) |