Java.Lang.ClassLoader.DefineClass Method
Constructs a new class from an array of bytes containing a class definition in class file format.

Syntax

[Android.Runtime.Register("defineClass", "([BII)Ljava/lang/Class;", "")]
[System.Obsolete("deprecated")]
protected Class DefineClass (byte[] classRep, int offset, int length)

Parameters

classRep
the memory image of a class file.
offset
the offset into classRep.
length
the length of the class file.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassFormatErrorif classRep does not contain a valid class.
Java.Lang.IndexOutOfBoundsExceptionif offset , length or if offset + length is greater than the length of classRep.

Remarks

Constructs a new class from an array of bytes containing a class definition in class file format.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1