 | UserAccountControlPromptForCredential Method |
Prompts the user for credential.
Namespace: TomsToolbox.DesktopAssembly: TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic 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 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