Export (0) Print
Expand All

Suspend()

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.

Namespace: Microsoft.Advertising.Mobile.UI

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

Syntax

C#

public void Suspend()

Platform

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.

For XAML: This call (with no parameter) is used when you do not need to stop the expansion of an ad. Otherwise, use the overloaded method.

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

ADD
Show:
© 2014 Microsoft