Share via


JSObject.HasProperty(String) Yöntem

Tanım

Hedef nesnenin veya prototiplerinden birinin belirtilen ada sahip bir özelliğe sahip olup olmadığını denetler.

public:
 bool HasProperty(System::String ^ propertyName);
public bool HasProperty (string propertyName);
member this.HasProperty : string -> bool
Public Function HasProperty (propertyName As String) As Boolean

Parametreler

propertyName
String

Özelliğin adı.

Döndürülenler

true nesne belirtilen ada sahip özelliğine sahip olduğunda.

Şunlara uygulanır