CodeGenerator.QuoteSnippetString 方法
通过用转义码格式化指定的字符串来转换它。
语法
命名空间: System.CodeDom.Compiler
程序集: System(在 system.dll 中)
语法 Visual Basic(声明)
Protected MustOverride Function QuoteSnippetString ( _ value As String _ ) As String
Visual Basic (用法)
Dim value As String Dim returnValue As String returnValue = Me.QuoteSnippetString(value)
C#
protected abstract string QuoteSnippetString ( string value )
C++
protected:
virtual String^ QuoteSnippetString (
String^ value
) abstract
J#
protected abstract String QuoteSnippetString (
String value
)
JScript
protected abstract function QuoteSnippetString ( value : String ) : String
XAML
不适用。
参数
value要转换的字符串。
返回值
已转换的字符串。
平台 Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。