Читати англійською Редагувати

Поділитися через


ObjectPrototype.isPrototypeOf(Object, Object) Method

Definition

Determines whether the first specified object can be instantiated as the type of the second specified object.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Object_isPrototypeOf)]
public static bool isPrototypeOf(object thisob, object ob);

Parameters

thisob
Object

The object that this method is acting upon.

ob
Object

The object that has the desired type.

Returns

true if ob is in the inheritance hierarchy of thisob; otherwise, false.

Attributes

Applies to

Продукт Версії
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1