Click or drag to resize

IJavaObjectSetField Method

Writes a value to an instance field on the underlying JVM object.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
void SetField(
	string fieldName,
	Object val
)

Parameters

fieldName  String
The name of the Java instance field to write.
val  Object
The value to assign. Must be compatible with the Java field's declared type: boxed .NET primitives, IJavaObject instances, or arrays of primitive types.
Exceptions
ExceptionCondition
InvalidOperationException Thrown if no field named fieldName is found on the underlying Java class.
InvalidCastException Thrown if val is not assignable to the Java field's declared type.
See Also