ObjectPrototype.isPrototypeOf(Object, Object) Méthode

Définition

Détermine si le premier objet spécifié peut être instancié comme type du deuxième objet spécifié.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 static bool isPrototypeOf(System::Object ^ thisob, System::Object ^ ob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Object_isPrototypeOf)]
public static bool isPrototypeOf(object thisob, object ob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Object_isPrototypeOf)>]
static member isPrototypeOf : obj * obj -> bool
Public Shared Function isPrototypeOf (thisob As Object, ob As Object) As Boolean

Paramètres

thisob
Object

Objet sur lequel cette méthode agit.

ob
Object

Objet qui a le type souhaité.

Retours

true si ob se trouve dans la hiérarchie d’héritage de thisob; sinon, false.

Attributs

S’applique à