| 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
)
Public Shared Function PromptForCredential (
parentHandle As IntPtr,
caption As String,
message As String,
authenticationError As Integer,
template As NetworkCredential
) As NetworkCredential
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