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.
Given the name of an existing ref in the repository, sets the HEAD pointer for the repository to that ref. If the ref does not exist, a GitRefNotFoundException will be thrown.
Namespace: Microsoft.TeamFoundation.Git.Server
Assembly: Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)
Syntax
'Declaration
Public Sub SetHead ( _
requestContext As TeamFoundationRequestContext, _
refName As String _
)
public void SetHead(
TeamFoundationRequestContext requestContext,
string refName
)
public:
void SetHead(
TeamFoundationRequestContext^ requestContext,
String^ refName
)
member SetHead :
requestContext:TeamFoundationRequestContext *
refName:string -> unit
public function SetHead(
requestContext : TeamFoundationRequestContext,
refName : String
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context with which the request should be issued.
refName
Type: System.StringThe name of the ref to set as the HEAD for the repository.
.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.