ObjectPrototype.hasOwnProperty(Object, Object) Methode

Definitie

Bepaalt of het opgegeven object de opgegeven eigenschap bevat.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

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

Parameters

thisob
Object

Het object waarop deze methode handelt.

name
Object

De eigenschap die moet worden gezocht.

Retouren

trueals name het een eigenschap is van thisob en is ingesteld; anders. false

Kenmerken

Van toepassing op