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 而非實體路徑。