Click or drag to resize

UserAccountControlPromptForCredential Method

Prompts the user for credential.

Namespace: TomsToolbox.Desktop
Assembly: TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static NetworkCredential? PromptForCredential(
	IntPtr parentHandle,
	string? caption,
	string? message,
	int authenticationError,
	NetworkCredential? template
)

Parameters

parentHandle  IntPtr
The parent for the dialog.
caption  String
The caption.
message  String
The message.
authenticationError  Int32
The previous authentication error, if any; 0 to hide previous error information.
template  NetworkCredential
The credential used to initialize the dialog; maybe null to start with an empty dialog.

Return Value

NetworkCredential
The credentials entered by the user, or null if the user has canceled the operation.
See Also