TfsGitRepositoryRefsCollection.MatchingName Method
Returns the ref in the repository matching the provided name, or null if no such ref is found.
Namespace: Microsoft.TeamFoundation.Git.Server
Assembly: Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)
Syntax
'Declaration
Public Function MatchingName ( _
requestContext As TeamFoundationRequestContext, _
refName As String _
) As TfsGitRef
public TfsGitRef MatchingName(
TeamFoundationRequestContext requestContext,
string refName
)
public:
TfsGitRef^ MatchingName(
TeamFoundationRequestContext^ requestContext,
String^ refName
)
member MatchingName :
requestContext:TeamFoundationRequestContext *
refName:string -> TfsGitRef
public function MatchingName(
requestContext : TeamFoundationRequestContext,
refName : String
) : TfsGitRef
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 look up.
Return Value
Type: Microsoft.TeamFoundation.Git.Server.TfsGitRef
The ref in the repository matching the provided name, or null if no such ref is found.
.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.