Indicates whether an Hil instance is valid.

Namespace:  Quanser.Hardware
Assembly:  Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)

Syntax

Visual Basic (Declaration)
Public Function IsValid As Boolean
C#
public bool IsValid()
Visual C++
public:
bool IsValid()
JavaScript
function isValid();

Return Value

Returns true if the card is valid (i.e., open) and false otherwise.

Remarks

The IsValid method returns a true if the Hil instance is valid. A Hil object is considered valid if it represents an open card that has not been closed. If this Hil instance is invalid, this method returns false.

Examples

This sample illustrates how to use the IsValid()()() method.
C# Copy Code
if (card.IsValid()) {
    /* ... use card ... */
}
Visual Basic Copy Code
if (card.IsValid()) {
    ' ... use card ...
}
Visual C++ Copy Code
if (card->IsValid()) {
    /* ... use card ... */
}

See Also