IJavaCompileUnit::TypeFromText

This property returns the type signature that corresponds to the textual (Java source code) representation of a type.

Syntax

HRESULT TypeFromText(
[in] BSTR bstrText,
[out, retval] BSTR* retval
);

Function TypeFromText(ByVal bstrText As String) As String

Parameters

bstrText

The type name to be converted.

Remarks

The given textual type can represent a primitive type (such as char, short), a class type (for example, String), or an array type (such as int[]). The given textual type is interpreted relative to the namespace of the compile unit, which includes all imported classes and all other classes in the compile unit's package. The returned type signature conforms to the Java signature format, as defined in Section 2.2, Lexical Grammar, in the Java Virtual Machine Specification.