ScalarValueCondition 类

验证特定的行和列中的某个值是否为预期的值。

继承层次结构

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Data.Schema.UnitTesting.Conditions.TestCondition
        Microsoft.Data.Schema.UnitTesting.Conditions.ResultSetCondition
          Microsoft.Data.Schema.UnitTesting.Conditions.ScalarValueCondition

命名空间:  Microsoft.Data.Schema.UnitTesting.Conditions
程序集:  Microsoft.Data.Schema.UnitTesting(在 Microsoft.Data.Schema.UnitTesting.dll 中)

语法

声明
<DatabaseSchemaProviderCompatibilityAttribute(GetType(DatabaseSchemaProvider))> _
<DatabaseSchemaProviderCompatibilityAttribute(Nothing)> _
Public NotInheritable Class ScalarValueCondition _
    Inherits ResultSetCondition
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
[DatabaseSchemaProviderCompatibilityAttribute(null)]
public sealed class ScalarValueCondition : ResultSetCondition
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
[DatabaseSchemaProviderCompatibilityAttribute(nullptr)]
public ref class ScalarValueCondition sealed : public ResultSetCondition
[<Sealed>]
[<DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))>]
[<DatabaseSchemaProviderCompatibilityAttribute(null)>]
type ScalarValueCondition =  
    class
        inherit ResultSetCondition
    end
public final class ScalarValueCondition extends ResultSetCondition

ScalarValueCondition 类型公开以下成员。

构造函数

  名称 说明
公共方法 ScalarValueCondition 初始化 ScalarValueCondition 类的新实例。

页首

属性

  名称 说明
受保护的属性 CanRaiseEvents 获取一个指示组件是否可以引发事件的值。 (继承自 Component。)
公共属性 ColumnNumber 获取或设置与 ResultSet 关联的列号。
公共属性 Container 获取 IContainer,它包含 Component。 (继承自 Component。)
受保护的属性 DesignMode 获取一个值,用以指示 Component 当前是否处于设计模式。 (继承自 Component。)
公共属性 Enabled 获取或设置一个值,该值指示是否启用测试条件。 (继承自 TestCondition。)
受保护的属性 Events 获取附加到此 Component 的事件处理程序的列表。 (继承自 Component。)
公共属性 ExpectedValue 获取或设置指定的 ResultSet 中第一行第一列的预期值。
公共属性 Name 获取或设置测试条件名称。 (继承自 TestCondition。)
公共属性 NullExpected 获取或设置一个值,该值指示 ExpectedValue 是否应包含 null 值。
公共属性 ResultSet 获取或设置要检查的 ExecutionResult 中的结果集。 (继承自 ResultSetCondition。)
公共属性 RowNumber 获取或设置与 ResultSet 关联的行号。
公共属性 Site 获取或设置 ComponentISite。 (继承自 Component。)

页首

方法

  名称 说明
公共方法 Assert 验证输入参数。 (继承自 ResultSetCondition。)
公共方法 CreateObjRef 安全关键。创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (继承自 MarshalByRefObject。)
公共方法 Dispose() 释放由 Component 使用的所有资源。 (继承自 Component。)
受保护的方法 Dispose(Boolean) 释放 Component 占用的非托管资源,也可以选择释放托管资源。 (继承自 Component。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 在通过垃圾回收将 Component 回收之前,释放非托管资源并执行其他清理操作。 (继承自 Component。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetLifetimeService 安全关键。检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject。)
受保护的方法 GetService 返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。 (继承自 Component。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 InitializeLifetimeService 安全关键。获取控制此实例的生存期策略的生存期服务对象。 (继承自 MarshalByRefObject。)
受保护的方法 MemberwiseClone() 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 MemberwiseClone(Boolean) 创建当前 MarshalByRefObject 对象的浅表副本。 (继承自 MarshalByRefObject。)
公共方法 ToString 返回表示当前对象的字符串。 (重写 Component.ToString()。)

页首

事件

  名称 说明
公共事件 Disposed 当通过调用 Dispose 方法释放组件时发生。 (继承自 Component。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.UnitTesting.Conditions 命名空间