Suspend | suspend method

AdControl.Suspend | suspend method

Suspends the current banner ad and replaces the current view of the banner ad with a static snapshot of what was being rendered.

Syntax


public:
void Suspend()

Parameters

This method has no parameters.

Remarks

After calling Suspend, the AdControl will not automatically refresh, even if the IsAutoRefreshEnabled property is set to true. Suspend overrides the setting of the IsAutoRefreshEnabled property while the ad is in a suspended state. After Resume is called, the value of the IsAutoRefreshEnabled property controls the refresh behavior of the AdControl.

After a call to Suspend, you cannot manually refresh the AdControl until Resume has been called.

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