WebApplicationInformation.ApplicationPath Eigenschap

Definitie

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.

Van toepassing op