Show / Hide Table of Contents

Constructor DefaultChallengeHandler

DefaultChallengeHandler()

Initializes a new instance of the DefaultChallengeHandler class for the current UI thread context.

Declaration
public DefaultChallengeHandler()
Exceptions
Type Condition
InvalidOperationException

The current thread is not the UI thread, or System.Threading.SynchronizationContext.Current is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.6 - 200.8
.NET200.6 - 300.0
.NET Windows100.14 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.14 - 200.8
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.0 - 200.8

DefaultChallengeHandler(SynchronizationContext)

Initializes a new instance of the DefaultChallengeHandler class with the specified UI thread context.

Declaration
public DefaultChallengeHandler(SynchronizationContext uiThreadContext)
Parameters
Type Name Description
SynchronizationContext uiThreadContext

The context for the UI thread.

Exceptions
Type Condition
ArgumentNullException

uiThreadContext is null.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.14 - 300.0
.NET Framework100.14 - 200.8

DefaultChallengeHandler(SynchronizationContext, nint)

Initializes a new instance of the DefaultChallengeHandler class with the specified UI thread context and window handle.

Declaration
public DefaultChallengeHandler(SynchronizationContext uiThreadContext, nint windowHandle)
Parameters
Type Name Description
SynchronizationContext uiThreadContext

The context for the UI thread.

nint windowHandle

The handle for the main window.

Exceptions
Type Condition
ArgumentNullException

uiThreadContext is null.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.14 - 300.0
.NET Framework100.14 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.