PexCreatableByConstructorAttribute Classe

Définition

Attribut permettant de définir qu'une instance d'un type peut être créée en appelant son constructeur.

public ref class PexCreatableByConstructorAttribute sealed : Microsoft::Pex::Framework::Creatable::PexCreatableByMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public sealed class PexCreatableByConstructorAttribute : Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type PexCreatableByConstructorAttribute = class
    inherit PexCreatableByMethodAttribute
Public NotInheritable Class PexCreatableByConstructorAttribute
Inherits PexCreatableByMethodAttribute
Héritage
Attributs

Constructeurs

PexCreatableByConstructorAttribute(Type, String[])

Crée une instance de ce type.

Propriétés

CreatableTypeDefinition

Obtient le type à créer.

(Hérité de PexCreatableAttributeBase)
MaySetRemainingFieldsByReflection

Indique si les champs qui ne sont pas gérés explicitement par cet attribut peuvent être définis par la réflexion. À utiliser avec précaution.

(Hérité de PexCreatableByMethodAndSettersAttributeBase)
Name

Obtient le nom de ce package.

(Hérité de PexExplorationPackageAttributeBase)

Méthodes

AfterExploration(IPexExplorationComponent, Object)

Rappel exécuté après la fin de l'exploration.

(Hérité de PexExplorationPackageAttributeBase)
BeforeExploration(IPexExplorationComponent)

Rappel exécuté avant le démarrage de l'exploration.

(Hérité de PexCreatableAttributeBase)
Decorate(Name, IPexDecoratedComponentElement)

Cette méthode peut annoncer des filtres, des focus et des packages sur IntelliTest.

(Hérité de PexExplorationPackageAttributeBase)
Initialize(IPexExplorationEngine)

Initialise le package d'exploration spécifié. Peut interagir avec des services.

(Hérité de PexExplorationPackageAttributeBase)
Load(IContainer)

Cette méthode offre la possibilité d'installer ou de substituer des services.

(Hérité de PexExplorationPackageAttributeBase)
ToString()

Retourne une valeur String qui représente le Object actuel.

(Hérité de PexCreatableAttributeBase)
TryInstantiate(IPexExplorationComponent, TypeEx[], IPexCreatable)

Essaie d'instancier cette définition avec les arguments spécifiés.

(Hérité de PexCreatableByMethodAndSettersAttribute)
Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext)

Valide l'attribut dans un contexte de visibilité particulier.

(Hérité de PexCreatableByMethodAndSettersAttribute)

Implémentations d’interfaces explicites

IPexComponentElementDecorator.Decorate(Name, IPexDecoratedComponentElement) (Hérité de PexComponentElementDecoratorAttributeBase)
IPexExplorationPackage.AfterExploration(IPexExplorationComponent, Object) (Hérité de PexExplorationPackageAttributeBase)
IPexExplorationPackage.BeforeExploration(IPexExplorationComponent) (Hérité de PexExplorationPackageAttributeBase)
IPexExplorationPackage.Initialize(IPexExplorationEngine) (Hérité de PexExplorationPackageAttributeBase)
IPexExplorationPackage.Load(IContainer) (Hérité de PexExplorationPackageAttributeBase)
IPexValidatable.Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) (Hérité de PexComponentElementDecoratorAttributeBase)

S’applique à