Table of Contents

Method Remove

Namespace
DotNetBrowser.Js
Assembly
DotNetBrowser.dll

Remove(string)

Removes a property with the specified name from the JavaScript object. Once you remove the property, it will not be available in the current JavaScript object anymore.

bool Remove(string name)

Parameters

name string

The name of the property or function.

Returns

bool

true if the property was successfully removed.

Exceptions

ObjectDisposedException

The IJsObject has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.

Remove(uint)

Removes a property with the specified index in the JavaScript object. Once you remove the property, it will not be available in the current JavaScript object anymore.

bool Remove(uint index)

Parameters

index uint

The index of the property or function.

Returns

bool

true if the property was successfully removed.

Exceptions

ObjectDisposedException

The IJsObject has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.