WebApplicationInformation.ApplicationVirtualPath 属性

定义

获取应用程序的逻辑路径。

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

属性值

应用程序的逻辑路径。

示例

下面的代码示例演示如何获取应用程序逻辑路径。

public string GetApplicationVirtualPath()
{
    // Get the name of the application virtual path.
    return (string.Format(
        "Application virtual path: {0}",
        ApplicationInformation.ApplicationVirtualPath));
}
Public Function GetApplicationVirtualPath() As String
    ' Get the name of the application virtual path.
    Return String.Format( _
    "Application virtual path: {0}", _
    ApplicationInformation.ApplicationVirtualPath())
End Function 'GetApplicationVirtualPath

适用于