Export (0) Print
Expand All

Suspend(bool) - Windows 8.1

Microsoft Advertising Services

Updated: October 17, 2013

Published: April 1, 2014

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.WinRT.UI (in Microsoft.Advertising.WinRT.UI.winmd)

XAML/.NET only



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.

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

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

This call modifies the AdControl so that it renders the ad using a WebViewBrush rather than a WebView.

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows Store Apps developer support page support page. For product support, under "App development" click the "Advertising SDK" link. To post a question in the support forum, scroll down to "Find answers online" and click "Ads-in-Apps for Windows 8 forum".

Send feedback about this documentation to adsfdbk@microsoft.com. There is no product support through this alias. Documentation feedback only.

Community Additions

© 2014 Microsoft