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 Current is |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET 6.0 Windows | 100.14 - 100.15 |
| .NET Framework | 100.14 - 100.15 |
| Xamarin.Android | 100.14 - 100.15 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.0 - 100.15 |
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 |
|---|---|
| System.ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET 6.0 Windows | 100.14 - 100.15 |
| .NET Framework | 100.14 - 100.15 |
DefaultChallengeHandler(SynchronizationContext, IntPtr)
Initializes a new instance of the DefaultChallengeHandler class with the specified UI thread context and window handle.
Declaration
public DefaultChallengeHandler(SynchronizationContext uiThreadContext, IntPtr windowHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| SynchronizationContext | uiThreadContext | The context for the UI thread. |
| IntPtr | windowHandle | The handle for the main window. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET 6.0 Windows | 100.14 - 100.15 |
| .NET Framework | 100.14 - 100.15 |