ObjectPrototype.isPrototypeOf(Object, Object) Methode

Definition

Bestimmt, ob das erste angegebene Objekt als Typ des zweiten angegebenen Objekts instanziiert werden kann.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

thisob
Object

Das Objekt, auf das diese Methode ausgeführt wird.

ob
Object

Das Objekt mit dem gewünschten Typ.

Gibt zurück

true wenn ob sich in der Vererbungshierarchie von thisob; andernfalls befindet false.

Attribute

Gilt für: