Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.validate.isnotdisposed

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > Validate > isNotDisposed

Validate.isNotDisposed() method

Throws an exception if the specified object has been disposed.

Signature:

static isNotDisposed(value: IDisposable, className: string): void;

Parameters

Parameter Type Description
value IDisposable the value to check
className string the class name, which will be mentioned in the error message

Returns:

void

Clone this wiki locally