# Hasp.GetApiVersion Method

Namespace: Aladdin.Hasp

## Description

Retrieves the version and build number of the Sentinel Licensing API library.

## Syntax

    static HaspStatus GetApiVersion ( Byte[]          vendor_code,
                                      ref HaspVersion version
                                    )

## Parameters

`vendor_code` | Bytes that contain the Vendor Code
`version` | Reference of the HaspVersion object that receives the version information

## Return Values

A HaspStatus status code.

## Overloaded Methods

The following overloaded methods are provided. They differ from the method above only in the argument type that they accept.

    static HaspStatus GetApiVersion ( String          vendor_code,
                                      ref HaspVersion version
                                    )