ObjectPrototype.isPrototypeOf(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.