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
namestringThe name of the property or function.
Returns
- bool
trueif 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
indexuintThe index of the property.
Returns
- bool
trueif 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.