ITPub博客

首页 > Linux操作系统 > Linux操作系统 > CodeGenerator.QuoteSnippetString 方法

CodeGenerator.QuoteSnippetString 方法

原创 Linux操作系统 作者:iDotNetSpace 时间:2008-06-25 13:32:28 0 删除 编辑
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。

.NET Framework

受以下版本支持:3.0、2.0、1.1、1.0

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12639172/viewspace-364798/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 关于Ghost的使用
请登录后发表评论 登录
全部评论

注册时间:2008-01-04

  • 博文量
    2376
  • 访问量
    5769221