AssemblyInfo.DirectoryPath Eigenschaft

Definition

Ruft das Verzeichnis ab, in dem die Anwendung gespeichert ist.

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

Eigenschaftswert

Ein String Verzeichnis, das das Verzeichnis enthält, in dem die Anwendung gespeichert ist.

Beispiele

In diesem Beispiel wird die My.Application.Info.DirectoryPath Eigenschaft verwendet, um den Verzeichnispfad anzuzeigen, in dem die Anwendung gespeichert ist.

MsgBox("Application directory path: " & My.Application.Info.DirectoryPath)

Hinweise

Die My.Application.Info.DirectoryPath Eigenschaft ruft das Verzeichnis ab, in dem die Anwendung gespeichert ist.

Verfügbarkeit nach Projekttyp

Projekttyp Available
Windows Forms-Anwendung Ja
Klassenbibliothek Ja
Konsolenanwendung Ja
Windows Forms-Steuerelementbibliothek Ja
Websteuerelementbibliothek No
Windows-Dienst Ja
Website No

Gilt für:

Weitere Informationen