表示因执行 DataRule 而生成的错误、异常或警告。
继承层次结构
System.Object
  Microsoft.Data.Schema.DataSchemaError
    Microsoft.Data.Schema.StaticCodeAnalysis.DataRuleError
命名空间:  Microsoft.Data.Schema.StaticCodeAnalysis
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
<SerializableAttribute> _
Public Class DataRuleError _
    Inherits DataSchemaError
[SerializableAttribute]
public class DataRuleError : DataSchemaError
[SerializableAttribute]
public ref class DataRuleError : public DataSchemaError
[<SerializableAttribute>]
type DataRuleError =  
    class
        inherit DataSchemaError
    end
public class DataRuleError extends DataSchemaError
DataRuleError 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | DataRuleError | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | BuildErrorCode | 获取此错误的完整错误代码。 (继承自 DataSchemaError。) | 
| .gif) | Column | 获取发生错误的列号。 (继承自 DataSchemaError。) | 
| .gif) | Document | 获取发生错误的文档的名称。 (继承自 DataSchemaError。) | 
| .gif) | ErrorCode | 获取错误代码。 (继承自 DataSchemaError。) | 
| .gif) | FullRuleId | |
| .gif) | HelpKeyword | 获取或设置用于将错误与帮助文档相联系的关键字。 (继承自 DataSchemaError。) | 
| .gif) | Line | 获取发生错误的行号。 (继承自 DataSchemaError。) | 
| .gif) | Message | 获取错误消息。 (继承自 DataSchemaError。) | 
| .gif) | Prefix | 获取错误的前缀。 (继承自 DataSchemaError。) | 
| .gif) | Severity | 获取分配给错误的严重级别。 (继承自 DataSchemaError。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | ToString | 返回表示当前对象的字符串。 (继承自 Object。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。