Delen via


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

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

See Also

Reference

TfsGitRepositoryRefsCollection Class

Microsoft.TeamFoundation.Git.Server Namespace