[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Indicates the return value of a dialog box.
Namespace:
System.Windows.Controls Assembly:
System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Visual Basic (Declaration)
Public Enumeration DialogResult
Dim instance As DialogResult
public enum class DialogResult
<object property="enumerationvalue"/>
| Member name | Description |
|---|
| None | The dialog box return value is None (when nothing is returned from the dialog box). |
| OK | The dialog box return value is OK (usually sent from a button labeled OK). |
| Cancel | The dialog box return value is Cancel (usually sent from a button labeled Cancel). |
| Abort | The dialog box return value is Abort (usually sent from a button labeled Abort). |
| Retry | The dialog box return value is Retry (usually sent from a button labeled Retry). |
| Ignore | The dialog box return value is Ignore (usually sent from a button labeled Ignore). |
| Yes | The dialog box return value is Yes (usually sent from a button labeled Yes). |
| No | The dialog box return value is No (usually sent from a button labeled No). |
OpenFileDialog uses DialogResult as its dialog box return value; see ShowDialog.
Reference