You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -460,6 +461,52 @@ public bool ShowDialog(Window owner)
460
461
returnresult;
461
462
}
462
463
464
+
/// <summary>
465
+
/// Shows the credentials dialog as a modal dialog with the specified owner.
466
+
/// </summary>
467
+
/// <param name="owner">The <see cref="Window"/> that owns the credentials dialog.</param>
468
+
/// <returns><see langword="true" /> if the user clicked OK; otherwise, <see langword="false" />.</returns>
469
+
/// <remarks>
470
+
/// <para>
471
+
/// The credentials dialog will not be shown if one of the following conditions holds:
472
+
/// </para>
473
+
/// <list type="bullet">
474
+
/// <item>
475
+
/// <description>
476
+
/// <see cref="UseApplicationInstanceCredentialCache"/> is <see langword="true"/> and the application instance
477
+
/// credential cache contains credentials for the specified <see cref="Target"/>, even if <see cref="ShowUIForSavedCredentials"/>
478
+
/// is <see langword="true"/>.
479
+
/// </description>
480
+
/// </item>
481
+
/// <item>
482
+
/// <description>
483
+
/// <see cref="ShowSaveCheckBox"/> is <see langword="true"/>, <see cref="ShowUIForSavedCredentials"/> is <see langword="false"/>, and the operating system credential store
484
+
/// for the current user contains credentials for the specified <see cref="Target"/>.
485
+
/// </description>
486
+
/// </item>
487
+
/// </list>
488
+
/// <para>
489
+
/// In these cases, the <see cref="Credentials"/>, <see cref="UserName"/> and <see cref="Password"/> properties will
490
+
/// be set to the saved credentials and this function returns immediately, returning <see langword="true" />.
491
+
/// </para>
492
+
/// <para>
493
+
/// If the <see cref="ShowSaveCheckBox"/> property is <see langword="true"/>, you should call <see cref="ConfirmCredentials"/>
494
+
/// after validating if the provided credentials are correct.
495
+
/// </para>
496
+
/// </remarks>
497
+
/// <exception cref="CredentialException">An error occurred while showing the credentials dialog.</exception>
498
+
/// <exception cref="InvalidOperationException"><see cref="Target"/> is an empty string ("").</exception>
/// <param name="owner">The <see cref="IntPtr"/> Win32 handle that is the owner of this dialog.</param>
553
+
/// <returns>If the user clicks the OK button of the dialog that is displayed (e.g. <see cref="VistaOpenFileDialog" />, <see cref="VistaSaveFileDialog" />), <see langword="true" /> is returned; otherwise, <see langword="false" />.</returns>
0 commit comments