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
屬性值
如果對編譯器的指令使用 URL 而非實體路徑,則為 true
,否則為 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 將會用於編譯器指令,而不是實體路徑。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應