BaseCodeGeneratorWithSite.CreateExceptionMessage 方法

创建要显示给用户的消息,已给定异常。

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.VSHost.10.0(在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)

语法

声明
Protected Overridable Function CreateExceptionMessage ( _
    exception As Exception _
) As String
protected virtual string CreateExceptionMessage(
    Exception exception
)
protected:
virtual String^ CreateExceptionMessage(
    Exception^ exception
)
abstract CreateExceptionMessage : 
        exception:Exception -> string 
override CreateExceptionMessage : 
        exception:Exception -> string 
protected function CreateExceptionMessage(
    exception : Exception
) : String

参数

返回值

类型:System.String
要演示给用户的消息。

.NET Framework 安全性

请参见

参考

BaseCodeGeneratorWithSite 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间