Android Guides | Samples

Java.Lang.Class.IsInstance Method

Tests whether the given object can be cast to the class represented by this Class.

Syntax

[Android.Runtime.Register("isInstance", "(Ljava/lang/Object;)Z", "")]
public Boolean IsInstance (Object object)

Parameters

object

Remarks

Tests whether the given object can be cast to the class represented by this Class. This is the runtime version of the instanceof operator.

[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