Click or drag to resize

IJavaObjectGetField(String) Method

Reads the value of an instance field on the underlying JVM object.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
Object GetField(
	string fieldName
)

Parameters

fieldName  String
The name of the Java instance field to read.

Return Value

Object
The field value as a boxed Object. Reference types are returned as IJavaObject instances; primitive types are boxed to their .NET equivalents.
Exceptions
ExceptionCondition
InvalidOperationException Thrown if no field named fieldName is found on the underlying Java class.
See Also