TypeMismatchException 类

定义

表示发生错误时抛出的异常。

public ref class TypeMismatchException : System::Data::DataException
[System.Serializable]
public class TypeMismatchException : System.Data.DataException
[<System.Serializable>]
type TypeMismatchException = class
    inherit DataException
Public Class TypeMismatchException
Inherits DataException
继承
TypeMismatchException
属性

构造函数

名称 说明
TypeMismatchException()

初始化一个带有默认属性值的新 TypeMismatchException 类实例。

TypeMismatchException(Type, Type)

使用指定的类型初始化类的新实例 TypeMismatchException

属性

名称 说明
AssignedType

会获得异常时分配的类型。

ExistingType

获取当前的异常类型。

适用于