NativeAdsManagerV2.ErrorOccurred Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a NativeAdV2 encounters an operational error.
// Register
event_token ErrorOccurred(EventHandler<NativeAdErrorEventArgs> const& handler) const;
// Revoke with event_token
void ErrorOccurred(event_token const* cookie) const;
// Revoke with event_revoker
NativeAdsManagerV2::ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, EventHandler<NativeAdErrorEventArgs> const& handler) const;
public event System.EventHandler<NativeAdErrorEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
nativeAdsManagerV2.addEventListener("erroroccurred", onErrorOccurred);
nativeAdsManagerV2.removeEventListener("erroroccurred", onErrorOccurred);
- or -
nativeAdsManagerV2.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As EventHandler(Of NativeAdErrorEventArgs)