TfsGitRepository.TryLookupObject Method

Looks up the Git object with the given object ID (20-byte SHA-1 hash).

Namespace:  Microsoft.TeamFoundation.Git.Server
Assembly:  Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)

Syntax

'Declaration
Public Function TryLookupObject ( _
    requestContext As TeamFoundationRequestContext, _
    objectId As Byte() _
) As TfsGitObject
public TfsGitObject TryLookupObject(
    TeamFoundationRequestContext requestContext,
    byte[] objectId
)
public:
TfsGitObject^ TryLookupObject(
    TeamFoundationRequestContext^ requestContext, 
    array<unsigned char>^ objectId
)
member TryLookupObject : 
        requestContext:TeamFoundationRequestContext * 
        objectId:byte[] -> TfsGitObject
public function TryLookupObject(
    requestContext : TeamFoundationRequestContext, 
    objectId : byte[]
) : TfsGitObject

Parameters

  • objectId
    Type: array<System.Byte[]

    The 20-byte SHA-1 hash of the object.

Return Value

Type: Microsoft.TeamFoundation.Git.Server.TfsGitObject
A TfsGitObject if the object is found; null otherwise

.NET Framework Security

See Also

Reference

TfsGitRepository Class

Microsoft.TeamFoundation.Git.Server Namespace