AssemblyInfo.DirectoryPath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the directory where the application is stored.
public:
property System::String ^ DirectoryPath { System::String ^ get(); };
public string DirectoryPath { get; }
member this.DirectoryPath : string
Public ReadOnly Property DirectoryPath As String
Property Value
A String
that contains the directory where the application is stored.
Examples
This example uses the My.Application.Info.DirectoryPath
property to display the directory path where the application is stored.
MsgBox("Application directory path: " & My.Application.Info.DirectoryPath)
Remarks
The My.Application.Info.DirectoryPath
property gets the directory where the application is stored.
Availability by Project Type
Project type | Available |
---|---|
Windows Forms Application | Yes |
Class Library | Yes |
Console Application | Yes |
Windows Forms Control Library | Yes |
Web Control Library | No |
Windows Service | Yes |
Web Site | No |
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.