HaspFile Constructor

Namespace: Aladdin.Hasp

Description

Constructs a new HaspFile object tor read or /write the specified file from a Hasp object.

Syntax

Public HaspFile ( HaspFileId fileid,
                  Hasp       parent);

Public HaspFile ( int   fileid,
                  Hasp  parent);

Parameters

fileid

Identifier for the file that is to be read. Possible values are:

> For the default read-only memory: ReadOnly

>For the default read/write memory: ReadWrite

>For a dynamic memory file (read-only, read/write, or read/write-once): The ID that was assigned to the file when the file was created. The ID is a value from 1 through 65471.

NOTE   Dynamic memory files are supported by Sentinel SL keys and Sentinel HL (Driverless configuration) keys (excluding HL Basic and HL Pro keys).

Parent

The Hasp object from where the file should be read or to which the file should be written.

Usage

Use the HaspFile constructor to set the file ID before calling the Read method or the Write method.

Related Topics

HaspFileId Enumeration

Hasp.GetFile Method