SpecialDirectories.MyPictures 属性

定义

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

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

属性值

String

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

例外

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

示例

此示例在中显示 MyPictures 目录的路径 MessageBoxThis example displays the path for the MyPictures directory in a MessageBox.

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

注解

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

适用于

另请参阅