创建要显示给用户的消息,已给定异常。
命名空间:  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
参数
- exception
 类型:System.Exception
 模板处理过程中的异常
返回值
类型:System.String
要演示给用户的消息。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。