ObjectPrototype.hasOwnProperty(Object, Object) Yöntem

Tanım

Belirtilen nesnenin belirtilen özelliği içerip içermediğini belirler.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

thisob
Object

Bu yöntemin işlem yaptığı nesne.

name
Object

Aranacak özellik.

Döndürülenler

trueve özelliğinin thisob bir özelliğiyse ve ayarlanmışsaname; değilse, false.

Öznitelikler

Şunlara uygulanır