Dispose | dispose method

AdControl.Dispose | dispose method

Disposes the ad control and frees resources used by the control.

Syntax


public:
void 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 ad control from a page then you must call Dispose yourself since the runtime will not find your ad control when it performs its page cleanup.

Note  Do not remove the remove the div element containing the ad control from the DOM prior to calling dispose.
 

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1

Namespace

Microsoft.Advertising.WinRT.UI
Microsoft::Advertising::WinRT::UI [C++]

Metadata

Microsoft.Advertising.winmd

See also

AdControl

 

 

Show:
© 2017 Microsoft