NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileDialog.FileName

Gets or sets a string containing the file name selected in the file dialog box.

[Visual Basic]
Public Property FileName As String
[C#]
public string FileName {get; set;}
[C++]
public: __property String* get_FileName();
public: __property void set_FileName(String*);
[JScript]
public function get FileName() : String;
public function set FileName(String);

Property Value

A string containing the file name selected in the file dialog box. The default value is an empty string ("").

Remarks

The file name includes both the file path and the extension. If no files are selected, this method returns an empty array.

This method can return only the name of one selected file. If you want to return an array containing the names of all selected files in a multiple-selection dialog box, use the FileNames method.

See Also

FileDialog Class | FileDialog Members | System.WinForms Namespace | FileNames