WebApplicationInformation.ApplicationPath Свойство

Определение

Получает физический путь к приложению.

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

Значение свойства

Физический путь к приложению.

Примеры

В следующем примере кода показано, как получить физический путь к приложению.

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

Комментарии

Для доступа к этому свойству требуются соответствующие разрешения. См. раздел Разрешения.

Применяется к