SpecialDirectoriesProxy.Desktop プロパティ

定義

デスクトップ ディレクトリへのパス名を取得します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

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

プロパティ値

デスクトップ ディレクトリへのパス。

例外

パスが空です。通常は、オペレーティング システムでディレクトリがサポートされていないことが原因です。

次の使用例は、 の Desktop ディレクトリのパスを MessageBox表示します。

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

注釈

SpecialDirectories オブジェクトには、一般的に参照されるディレクトリへのパスが含まれています。

適用対象

こちらもご覧ください