ObjectPrototype.hasOwnProperty(Object, Object) Metodo

Definizione

Determina se l'oggetto specificato contiene la proprietà specificata.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Parametri

thisob
Object

Oggetto su cui agisce questo metodo.

name
Object

Proprietà da cercare.

Valori restituiti

true se name è una proprietà di thisob e è stata impostata; in caso contrario, false.

Attributi

Si applica a