SpecialDirectoriesProxy.MyDocuments 属性

定义

获取指向 My Documents 目录的路径名称。Gets a path name pointing to the My Documents directory.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 property System::String ^ MyDocuments { System::String ^ get(); };
public string MyDocuments { get; }
member this.MyDocuments : string
Public ReadOnly Property MyDocuments As String

属性值

String

指向 My Documents 目录的路径。The path to the My Documents directory.

例外

路径为空,通常是因为操作系统不支持该目录。The path is empty, usually because the operating system does not support the directory.

示例

此示例显示中 "我的文档" 目录的路径 MessageBoxThis example displays the path for the My Documents directory in a MessageBox.

MsgBox(My.Computer.FileSystem.SpecialDirectories.MyDocuments)

注解

SpecialDirectories对象包含指向经常引用的目录的路径。The SpecialDirectories object contains paths to commonly referenced directories.

适用于

另请参阅