NativeAdsManager.ErrorOccurred Événement

Définition

Déclenché lorsqu’un NativeAd rencontre une erreur opérationnelle.

// Register
event_token ErrorOccurred(EventHandler<AdErrorEventArgs> const& handler) const;

// Revoke with event_token
void ErrorOccurred(event_token const* cookie) const;

// Revoke with event_revoker
ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, EventHandler<AdErrorEventArgs> const& handler) const;
public event System.EventHandler<AdErrorEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
nativeAdsManager.addEventListener("erroroccurred", onErrorOccurred);
nativeAdsManager.removeEventListener("erroroccurred", onErrorOccurred);
- or -
nativeAdsManager.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As EventHandler(Of AdErrorEventArgs) 

Type d'événement

System.EventHandler<AdErrorEventArgs>

Remarques

Important

La classe NativeAdsManager est déconseillée. Utilisez NativeAdsManagerV2 à la place.

S’applique à