Compartilhar via


ToggleSwitch.dispose method

Releases resources held by this ToggleSwitch. Call this method when the ToggleSwitch is no longer needed. After calling this method, the ToggleSwitch becomes unusable.

Syntax

toggleSwitch.dispose();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 2.0

Namespace

WinJS.UI

See also

ToggleSwitch