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
要轉換的字串。
傳回
轉換後的弦。
備註
此方法回傳經過修改後的字串,格式化為跳脫碼字元。 例如, /" 可能用來表示 "。 這些轉義碼用來替換指定字串中可能與語言語法衝突的元素。