ObjectPrototype.hasOwnProperty(Object, Object) Metódus

Definíció

Meghatározza, hogy a megadott objektum tartalmazza-e a megadott tulajdonságot.

Ez az API a termékinfrastruktúrát támogatja, és közvetlenül a kódból nem használható.

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

Paraméterek

thisob
Object

A metódus által alkalmazott objektum.

name
Object

A keresendő tulajdonság.

Válaszok

trueha name az a tulajdonságathisob, és be van állítva; ellenkező esetben. false

Attribútumok

A következőre érvényes: