WebApplicationInformation.ApplicationPath Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u het fysieke pad van de toepassing op.
public:
property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String
Waarde van eigenschap
Het fysieke pad van de toepassing.
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u het fysieke pad van de toepassing ophaalt.
public string GetApplicationPath()
{
// Get the name of the application path.
return (string.Format(
"Application path: {0}",
ApplicationInformation.ApplicationPath));
}
Public Function GetApplicationPath() As String
' Get the name of the application path.
Return String.Format( _
"Application path: {0}", _
ApplicationInformation.ApplicationPath())
End Function 'GetApplicationPath
Opmerkingen
Voor deze eigenschap moeten de juiste machtigingen worden geopend. Raadpleeg de sectie Machtigingen.