ExportTestConditionAttribute Class

 

Concrete classes implementing TestCondition must add the ExportTestConditionAttribute attribute to their class definition. This ensures they will be detected and added to the set of available test conditions in the SQL Server Unit Test Designer.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Inheritance Hierarchy

System.Object
  System.Attribute
    System.ComponentModel.Composition.ExportAttribute
      Microsoft.SqlServer.Dac.Extensibility.ExportStandardMetadataAttribute
        Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions.ExportTestConditionAttribute

Syntax

[MetadataAttributeAttribute]
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public class ExportTestConditionAttribute : ExportStandardMetadataAttribute
[MetadataAttributeAttribute]
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class ExportTestConditionAttribute : ExportStandardMetadataAttribute
[<MetadataAttributeAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type ExportTestConditionAttribute = 
    class
        inherit ExportStandardMetadataAttribute
    end
<MetadataAttributeAttribute>
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)>
Public Class ExportTestConditionAttribute
    Inherits ExportStandardMetadataAttribute

Constructors

Name Description
System_CAPS_pubmethod ExportTestConditionAttribute(String, String)

Initializes a new instance of the ExportTestConditionAttribute class.

System_CAPS_pubmethod ExportTestConditionAttribute(String, Type)

Initializes a new instance of the ExportTestConditionAttribute class.

Properties

Name Description
System_CAPS_pubproperty ContractName

(Inherited from ExportAttribute.)

System_CAPS_pubproperty ContractType

(Inherited from ExportAttribute.)

System_CAPS_pubproperty DisplayName

(Inherited from ExportStandardMetadataAttribute.)

System_CAPS_pubproperty Id

(Inherited from ExportStandardMetadataAttribute.)

System_CAPS_pubproperty PlatformCompatibility

(Inherited from ExportStandardMetadataAttribute.)

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

System_CAPS_pubproperty Version

(Inherited from ExportStandardMetadataAttribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions Namespace

Return to top