Delen via


TfsGitRepository.TryLookupObjectType Method

Looks up the Git object type 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 TryLookupObjectType ( _
    requestContext As TeamFoundationRequestContext, _
    objectId As Byte() _
) As TfsGitObjectType
public TfsGitObjectType TryLookupObjectType(
    TeamFoundationRequestContext requestContext,
    byte[] objectId
)
public:
TfsGitObjectType TryLookupObjectType(
    TeamFoundationRequestContext^ requestContext, 
    array<unsigned char>^ objectId
)
member TryLookupObjectType : 
        requestContext:TeamFoundationRequestContext * 
        objectId:byte[] -> TfsGitObjectType
public function TryLookupObjectType(
    requestContext : TeamFoundationRequestContext, 
    objectId : byte[]
) : TfsGitObjectType

Parameters

  • objectId
    Type: array<System.Byte[]

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

Return Value

Type: Microsoft.TeamFoundation.Git.Server.TfsGitObjectType
A TfsGitObjectType of the object, TfsGitObjectType.Bad if not found

.NET Framework Security

See Also

Reference

TfsGitRepository Class

Microsoft.TeamFoundation.Git.Server Namespace