Compartilhar via


Classe ExportTestConditionAttribute

 

Classes concretas que implementam TestCondition devem adicionar o atributo ExportTestConditionAttribute à sua definição de classe.Isso garante que elas serão detectadas e adicionadas ao conjunto de condições de teste disponíveis no Designer de Teste de Unidade do SQL Server.

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

Hierarquia de herança

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

Sintaxe

[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

Construtores

Nome Descrição
System_CAPS_pubmethod ExportTestConditionAttribute(String, String)

Inicializa uma nova instância da classe ExportTestConditionAttribute.

System_CAPS_pubmethod ExportTestConditionAttribute(String, Type)

Inicializa uma nova instância da classe ExportTestConditionAttribute.

Propriedades

Nome Descrição
System_CAPS_pubproperty ContractName

(herdado de ExportAttribute.)

System_CAPS_pubproperty ContractType

(herdado de ExportAttribute.)

System_CAPS_pubproperty DisplayName

(herdado de ExportStandardMetadataAttribute.)

System_CAPS_pubproperty Id

(herdado de ExportStandardMetadataAttribute.)

System_CAPS_pubproperty PlatformCompatibility

(herdado de ExportStandardMetadataAttribute.)

System_CAPS_pubproperty TypeId

(herdado de Attribute.)

System_CAPS_pubproperty Version

(herdado de ExportStandardMetadataAttribute.)

Métodos

Nome Descrição
System_CAPS_pubmethod Equals(Object)

(herdado de Attribute.)

System_CAPS_protmethod Finalize()

(herdado de Object.)

System_CAPS_pubmethod GetHashCode()

(herdado de Attribute.)

System_CAPS_pubmethod GetType()

(herdado de Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(herdado de Attribute.)

System_CAPS_pubmethod Match(Object)

(herdado de Attribute.)

System_CAPS_protmethod MemberwiseClone()

(herdado de Object.)

System_CAPS_pubmethod ToString()

(herdado de Object.)

Implementações explícitas da interface

Nome Descrição
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(herdado de Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(herdado de Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(herdado de Attribute.)

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

(herdado de Attribute.)

Acesso thread-safe

Qualquer estático público (Compartilhado no Visual Basic) membros desde tipo são thread safe. Não há garantia de que qualquer membro de instância seja thread-safe.

Consulte também

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

Retornar ao topo