CodeGenerator.QuoteSnippetString(String) 方法

定義

以逸出程式碼格式化,以轉換指定的字串。

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

要轉換的字串。

傳回

轉換的字串。

備註

這個方法會傳回已修改的指定字串版本,其格式為逸出碼字元。 例如, /" 可能用來表示 "。 這些逸出程式代碼可用來取代可能與語言語法衝突之指定字串的專案。

適用於