ObjectPrototype.hasOwnProperty(Object, Object) Méthode

Définition

Détermine si l'objet spécifié contient la propriété spécifiée.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

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ètres

thisob
Object

Objet sur lequel cette méthode agit.

name
Object

Propriété à rechercher.

Retours

true si name est une propriété de thisob et a été défini ; sinon, false.

Attributs

S’applique à