Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Get the default branch for this repository as a TfsGitRef. If there is not a default branch, it will return null.
Namespace: Microsoft.TeamFoundation.Git.Server
Assembly: Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)
Syntax
'Declaration
Public Function GetDefaultBranch ( _
requestContext As TeamFoundationRequestContext _
) As TfsGitRef
public TfsGitRef GetDefaultBranch(
TeamFoundationRequestContext requestContext
)
public:
TfsGitRef^ GetDefaultBranch(
TeamFoundationRequestContext^ requestContext
)
member GetDefaultBranch :
requestContext:TeamFoundationRequestContext -> TfsGitRef
public function GetDefaultBranch(
requestContext : TeamFoundationRequestContext
) : TfsGitRef
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
Return Value
Type: Microsoft.TeamFoundation.Git.Server.TfsGitRef
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.