This property provides access to a compile unit (a file containing one or more classes).
Syntax
HRESULT CompileUnit(
[in]BSTR bstrFileName,
IJavaCompileUnit* retval
);
Property Get CompileUnit(FileName As String) As IJavaCompileUnit
Parameters
FileName
Required string. A full path that identifies the file containing one or more classes.
Remarks
Compile units are identified by fully qualified file names (for example, C:\MyClasses\Foo.java). The file name extension is optional. If a file with the .java extension does not exist, but a corresponding .class file does exist, the Visual J++ Code Model uses the .class file to obtain as much information as possible about the class.
Return Value
The following value is obtained from the returned HRESULT.
Return value | Meaning |
S_OK | Success |