Microsoft SDK for Java

getString

This method of the Variant Class retrieves the value of a VT_BSTR Variant.

Syntax

public native String getString();

Return Value

Returns the Variant object's value, which is converted to a Java string.

Exceptions

ClassCastException if the variant type is not VT_BSTR.

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