Constructor DefaultChallengeHandler
DefaultChallengeHandler()
Initializes a new instance of the DefaultChallengeHandler class for the current UI thread context.
Declaration
public DefaultChallengeHandler()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The current thread is not the UI thread, or System.Threading.SynchronizationContext.Current is |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.0 - 200.5 |
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 |
---|---|---|
System.Threading.SynchronizationContext | uiThreadContext | The context for the UI thread. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.14 - 200.5 |
.NET Framework | 100.14 - 200.5 |
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 |
---|---|---|
System.Threading.SynchronizationContext | uiThreadContext | The context for the UI thread. |
System.IntPtr | windowHandle | The handle for the main window. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.14 - 200.5 |
.NET Framework | 100.14 - 200.5 |