语言

PropertyConstraintException 类

定义

属性约束异常类。 请注意,此类具有状态 - 因此,如果更改其内部版本,则可能是中断性变更

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
public sealed class PropertyConstraintException : System.Data.ConstraintException
type PropertyConstraintException = class
    inherit ConstraintException
Public NotInheritable Class PropertyConstraintException
Inherits ConstraintException
继承
PropertyConstraintException
特性

构造函数

名称 说明
PropertyConstraintException()

使用默认消息初始化类的新实例 PropertyConstraintException 。

PropertyConstraintException(String, Exception)

使用提供的消息和内部异常初始化类的新实例 PropertyConstraintException 。

PropertyConstraintException(String, String, Exception)

初始化 PropertyConstraintException 类的新实例。

PropertyConstraintException(String, String)

初始化 PropertyConstraintException 类的新实例。

PropertyConstraintException(String)

使用提供的消息初始化类的新实例 PropertyConstraintException 。

属性

名称 说明
PropertyName

获取违反约束的属性的名称。

适用于