Suspend(bool) method

AdControl.Suspend(bool) method

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

Syntax

public void Suspend(bool)

Parameters

ParameterTypeDescription
closeExpandedAdSystem.BooleanThe value true cancel any action that expands the ad. For example, an image ad will not expand to be full screen. The value false results in no action being taken on the expanded ad. For example, a full screen ad will not be closed.

 

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. 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.

Requirements

Minimum supported phoneWindows Phone 8 Silverlight
Namespace Microsoft.Advertising.Mobile.UI
AssemblyMicrosoft.Advertising.Mobile.UI.dll

 

 

 

Show:
© 2017 Microsoft