Microsoft SDK for Java

getvt

This method of the SafeArray Class retrieves the variant type of the SafeArray elements. This corresponds to a public constant, com.ms.com.VariantXXX.

Syntax

public int getvt();

Note   If JavaTLB is used to generate the Java method information that passes a SafeArray from COM to Java, the variant type might be inexact. (The element size, however, will always be correct.) JavaTLB has been superceded by the jactivex tool, which binds the exact variant type into the .class file.

Return Value

Returns the variant type of the element.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.