CodeGenerator.QuoteSnippetString(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以逸出程式碼格式化,以轉換指定的字串。
protected:
abstract System::String ^ QuoteSnippetString(System::String ^ value);
protected abstract string QuoteSnippetString (string value);
abstract member QuoteSnippetString : string -> string
Protected MustOverride Function QuoteSnippetString (value As String) As String
參數
- value
- String
要轉換的字串。
傳回
轉換的字串。
備註
這個方法會傳回已修改的指定字串版本,其格式為逸出碼字元。 例如, /"
可能用來表示 "
。 這些逸出程式代碼可用來取代可能與語言語法衝突之指定字串的專案。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應