Edit

GitRepository Class

Definition

[Microsoft.VisualStudio.Services.WebApi.ServiceEventObject]
[System.Runtime.Serialization.DataContract]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.TeamFoundation.SourceControl.WebApi.GitRepositoriesCollection))]
public class GitRepository : Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlSecuredObject
[Microsoft.VisualStudio.Services.WebApi.ServiceEventObject]
[System.Runtime.Serialization.DataContract]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.TeamFoundation.SourceControl.WebApi.GitRepositoriesCollection))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.TeamFoundation.SourceControl.WebApi.GitForkTeamProjectReference))]
public class GitRepository : Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlSecuredObject
type GitRepository = class
    inherit VersionControlSecuredObject
Public Class GitRepository
Inherits VersionControlSecuredObject
Inheritance
Attributes
Microsoft.VisualStudio.Services.WebApi.ServiceEventObjectAttribute DataContractAttribute KnownTypeAttribute

Constructors

GitRepository()

Fields

c_rootPath

Properties

DefaultBranch
Id
IsFork

True if the repository was created as a fork

Links
Name
ParentRepository
ProjectReference
RemoteUrl
Size

Compressed size (bytes) of the repository.

SshUrl
Url
ValidRemoteUrls
WebUrl

Methods

GetTeamProjectUri()
SetSecuredObject(ISecuredObject)

Explicit Interface Implementations

ISecuredObject.GetToken() (Inherited from VersionControlSecuredObject)
ISecuredObject.NamespaceId (Inherited from VersionControlSecuredObject)
ISecuredObject.RequiredPermissions (Inherited from VersionControlSecuredObject)

Applies to