Export (0) Print
Expand All

Suspend (bool)

Updated: September 18, 2013

Published: September 18, 2013

Suspends the current ad. Replaces the current view of the ad with a static snapshot of what was being rendered. This overloaded method allows the ad to be placed in a suspended state while canceling any expanded experience or without closing a full screen ad.

Namespace: Microsoft.Advertising.Mobile.UI

Assembly: Microsoft.Advertising.Mobile.UI (in Microsoft.Advertising.Mobile.UI.dll)



public void Suspend(bool)

A parameter value of true will cancel any action that expands the ad. For example, an image ad will not expand to be full screen.

A parameter value of false will result in no action being taken on the expanded ad. For example, a full screen ad will not be closed.


Windows Phone 8

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. Once Resume has been 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.

Support and Feedback

Report a bug in the product by visiting the Windows Phone Dev Center support page (scroll down to the section "Microsoft Advertising support").

Send feedback about this documentation to adsfdbk@microsoft.com.

Community Additions

© 2014 Microsoft