# HaspFile Class

Namespace: Aladdin.Hasp

## Syntax

    public class Hasp :
           ICloneable,
           IDisposable,
           IComparable<Hasp>

## Description

Provides methods to access functions to read and write the memory of a Sentinel protection key.

## Constructors

Name | Description
--- | ---
HaspFile(HaspFileId, Hasp) | Constructs new HaspFile object to read or write the specified file from Hasp object.
HaspFile(int, Hasp) | Constructs new HaspFile object to read or write the specified file from Hasp object.

## Methods

Name | Description
--- | ---
Read | Reads the memory of a Sentinel protection key.
Write | Writes to the memory of a Sentinel protection key.
FileSize | Retrieves the byte size of a memory file from a Sentinel protection key.

## Properties

Name | Description
--- | ---
FilePos | Gets or sets the file position for next read or write operation.
FileId | Gets the file ID from a HaspFile object.