NativeAdsManagerV2.ErrorOccurred 事件

定義

當 NativeAdV2遇到操作錯誤時引發。

// Register
event_token ErrorOccurred(EventHandler<NativeAdErrorEventArgs> 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<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) 

事件類型

System.EventHandler<NativeAdErrorEventArgs>

適用於

另請參閱