dispose
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.

Return value

This method does not return a value.

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

Client

Windows 10

Namespace

MicrosoftNSJS.Advertising

Library

AdScheduler.js

See also

AdScheduler

 

 

Show:
© 2017 Microsoft