FileDialog.FileName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a string containing the full path of the file selected in a file dialog.
public:
property System::String ^ FileName { System::String ^ get(); void set(System::String ^ value); };
public string FileName { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
public string FileName { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.FileName : string with get, set
member this.FileName : string with get, set
Public Property FileName As String
Property Value
A String that is the full path of the file selected in the file dialog. The default is Empty.
- Attributes
Remarks
If more than one file name is selected (length of FileNames is greater than one) then FileName contains the first selected file name. If no file name is selected, this property contains Empty rather than null
.
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET