Method Contains
- Namespace
- DotNetBrowser.Js
- Assembly
- DotNetBrowser.dll
Contains(string)
Checks whether the JavaScript object has a property or function with the specified name
.
bool Contains(string name)
Parameters
name
stringThe name of the property or function.
Returns
- bool
true
if the object has a property or function with the specifiedname
.
Exceptions
- ObjectDisposedException
The IJsObject has already been disposed.
- ConnectionClosedException
The connection to the Chromium engine is closed.
Contains(uint)
Checks whether the JavaScript object has a property with the specified index
.
bool Contains(uint index)
Parameters
index
uintThe index of the property.
Returns
- bool
true
if the object has a property with the givenindex
.
Exceptions
- ObjectDisposedException
The IJsObject has already been disposed.
- ConnectionClosedException
The connection to the Chromium engine is closed.