SaveFileDialog.DefaultFileName Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the file name used if a file name is not specified by the user.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property DefaultFileName As String
public string DefaultFileName { get; set; }

Property Value

Type: System.String
The file name used if a file name is not specified by the user.String.

Exceptions

Exception Condition
ArgumentException

Occurs if the specified file name is nulla null reference (Nothing in Visual Basic) or contains invalid characters such as quotes ("), less than (<), greater than (>), pipe (|), backspace (\b), null (\0), tab (\t), colon (:), asterisk(*), question mark (?), and slashes (\\, /).

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.