ConfigurationLocation.Path 属性
定义
获取配置设置由此 ConfigurationLocation 对象表示的资源的相对路径。Gets the relative path to the resource whose configuration settings are represented by this ConfigurationLocation object.
public:
property System::String ^ Path { System::String ^ get(); };
public string Path { get; }
member this.Path : string
Public ReadOnly Property Path As String
属性值
资源的相对路径,该资源的配置设置由此 ConfigurationLocation 表示。The relative path to the resource whose configuration settings are represented by this ConfigurationLocation.
示例
下面的代码示例演示如何访问 Path 属性并显示返回到控制台的值。The following code example shows how to access the Path property and display the value returned to the console.
Console.WriteLine("Location Path: {0}", myLocation.Path);
Console.WriteLine("Location Path: {0}", myLocation.Path)
注解
属性返回的路径相对于网站的 Path 根路径。The path that is returned by the Path property is relative to the root of your Web site.
备注
Path属性可能包含配置设置应用于的路径的逗号分隔的列表。The Path property might contain a comma-delimited list of paths to which the configuration setting applies.