LabWindows/CVI

CDotNetObjectGetHashCode

int CDotNetObjectGetHashCode (CDotNetHandle object, int *hashCode, CDotNetHandle *exception);

Purpose

Calls the .NET System.Object.GetHashCode method to get the hash code of a .NET object.

Parameters

Input
Name Type Description
object CDotNetHandle The handle of a .NET object.
Output
Name Type Description
hashCode int The hash code of the object.
exception CDotNetHandle The handle to an exception thrown by .NET.

If .NET throws an exception, you can pass this handle to CDotNetGetExceptionInfo to get information from the exception object.

You can pass NULL for this parameter.

Return Value

Name Type Description
status int A value indicating whether an error occurred. Negative error codes indicate function failure.

Error codes are defined in cvi\include\cvidotnet.h.

You can use CDotNetGetErrorDescription to get the description of an error code.

Additional Information

Library: .NET Library

Include file: cvidotnet.h

LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later