次の方法で共有


CodeGenerator.QuoteSnippetString メソッド

エスケープ コード書式を付けることによって、指定した文字列を変換します。

Protected MustOverride Function QuoteSnippetString( _
   ByVal value As String _) As String
[C#]
protected abstract string QuoteSnippetString(stringvalue);
[C++]
protected: virtual String* QuoteSnippetString(String* value) = 0;
[JScript]
protected abstract function QuoteSnippetString(
   value : String) : String;

パラメータ

  • value
    変換する文字列。

戻り値

変換後の文字列。

解説

このメソッドは、指定した文字列にエスケープ コード書式を付け、変更後の文字列を返します。たとえば、 /" を使用して " を表現できます。これらのエスケープ コードは、指定した文字列が言語構文と矛盾する可能性がある場合に、その文字列の要素を置換するために使用されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

CodeGenerator クラス | CodeGenerator メンバ | System.CodeDom.Compiler 名前空間