Windows apps
Collapse the table of content
Expand the table of content

AdScheduler.dispose method

Releases resources and unregisters listeners used by the AdScheduler.

Syntax


adScheduler.dispose();

Parameters

This method has no parameters.

Remarks

In general, the Windows runtime will handle disposal of the ad control and therefore most applications will not call dispose. However, if you programmatically remove the AdScheduler from a page then you must call dispose yourself since the runtime will not find your ad control when it performs its page cleanup.

Do not use this AdScheduler instance after calling dispose; doing so will cause undefined behavior.

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Minimum supported phone

Windows 10 Mobile

Namespace

MicrosoftNSJS.Advertising

Metadata

Ad.js

See also

AdScheduler

 

 

Show:
© 2017 Microsoft