TypeConversionException 构造函数 (String, String, Exception)

Initializes a new instance of the TypeConversionException class that has the specified input string, type and inner exception.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
Public Sub New ( _
    inputString As String, _
    typeName As String, _
    innerException As Exception _
)
用法
Dim inputString As String 
Dim typeName As String 
Dim innerException As Exception 

Dim instance As New TypeConversionException(inputString, _
    typeName, innerException)
public TypeConversionException(
    string inputString,
    string typeName,
    Exception innerException
)
public:
TypeConversionException(
    String^ inputString, 
    String^ typeName, 
    Exception^ innerException
)
new : 
        inputString:string * 
        typeName:string * 
        innerException:Exception -> TypeConversionException
public function TypeConversionException(
    inputString : String, 
    typeName : String, 
    innerException : Exception
)

参数

  • inputString
    类型:System.String
    A String value that specifies the input string that caused the type conversion error.
  • typeName
    类型:System.String
    A String value that specifies the type that caused the exception.
  • innerException
    类型:System.Exception
    An Exception object that contains the inner exception. This is used when one exception causes another exception to be raised.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

示例

处理 SMO 异常

请参阅

参考

TypeConversionException 类

TypeConversionException 重载

Microsoft.SqlServer.Management.Dmf 命名空间