ObjectPrototype.isPrototypeOf(Object, Object) 方法

定义

确定是否可将第一个指定对象实例化为第二个指定对象的类型。Determines whether the first specified object can be instantiated as the type of the second specified object.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

thisob
Object

此方法所作用于的对象。The object that this method is acting upon.

ob
Object

具有所需类型的对象。The object that has the desired type.

返回

Boolean

如果 obthisob 的继承层次结构中,则为 true;否则为 falsetrue if ob is in the inheritance hierarchy of thisob; otherwise, false.

属性

适用于