通过


ConfigurationLocation.Path 属性

定义

获取其 ConfigurationLocation 配置设置由此对象表示的资源的相对路径。

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

属性值

其配置设置由此 ConfigurationLocation表示的资源的相对路径。

示例

下面的代码示例演示如何访问 Path 属性并显示返回到控制台的值。

Console.WriteLine("Location Path: {0}", myLocation.Path);
Console.WriteLine("Location Path: {0}", myLocation.Path)

注解

属性返回 Path 的路径相对于网站的根目录。

注释

Path 属性可能包含应用配置设置的路径的逗号分隔列表。

适用于