CompilationSection.UrlLinePragmas 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示编译器的说明是使用物理路径还是 URL。
public:
property bool UrlLinePragmas { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("urlLinePragmas", DefaultValue=false)]
public bool UrlLinePragmas { get; set; }
[<System.Configuration.ConfigurationProperty("urlLinePragmas", DefaultValue=false)>]
member this.UrlLinePragmas : bool with get, set
Public Property UrlLinePragmas As Boolean
属性值
true 如果编译器的说明使用 URL 而不是物理路径,则为否则,为 false. 默认值为 false。
- 属性
示例
下面的代码示例演示如何使用该 UrlLinePragmas 属性。 该代码示例是 CompilationSection 类中的一个较大示例的一部分。
// Display UrlLinePragmas property.
Console.WriteLine("UrlLinePragmas: {0}",
configSection.UrlLinePragmas);
// Set UrlLinePragmas property.
configSection.UrlLinePragmas = false;
' Display UrlLinePragmas property.
Console.WriteLine("UrlLinePragmas: {0}", _
configSection.UrlLinePragmas)
' Set UrlLinePragmas property.
configSection.UrlLinePragmas = False
注解
如果此属性在 true 配置中指定,则 URL 将用于编译器指令而不是物理路径。