Language
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

Name Description
GitRepository()

Fields

Name Description
c_rootPath

Properties

Name Description
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

Name Description
GetTeamProjectUri()
SetSecuredObject(ISecuredObject)

Explicit Interface Implementations

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

Applies to