Click or drag to resize

UserAccountControlPromptForCredential Method

Prompts the user for credential.

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll)
Syntax
public static NetworkCredential? PromptForCredential(
	IntPtr parentHandle,
	string? caption,
	string? message,
	int authenticationError,
	NetworkCredential? template
)

Parameters

parentHandle
Type: SystemIntPtr
The parent for the dialog.
caption
Type: SystemString
The caption.
message
Type: SystemString
The message.
authenticationError
Type: SystemInt32
The previous authentication error, if any; 0 to hide previous error information.
template
Type: System.NetNetworkCredential
The credential used to initialize the dialog; maybe null to start with an empty dialog.

Return Value

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