Application.ExecutablePath-Eigenschaft
Ruft den Pfad einschließlich des Namens der ausführbaren Datei ab, die zum Starten der Anwendung verwendet wurde.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public Shared ReadOnly Property ExecutablePath As String
'Usage
Dim value As String
value = Application.ExecutablePath
public static string ExecutablePath { get; }
public:
static property String^ ExecutablePath {
String^ get ();
}
/** @property */
public static String get_ExecutablePath ()
public static function get ExecutablePath () : String
Eigenschaftenwert
Der Pfad und der Name der ausführbaren Datei, die zum Starten der Anwendung verwendet wurde.
.NET Framework-Sicherheit
- FileIOPermission zum Abrufen des Pfads. Zugeordnete Enumeration: FileIOPermissionAccess.PathDiscovery
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
Application-Klasse
Application-Member
System.Windows.Forms-Namespace