sp core library.validate.isnotdisposed - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️