PexCreatableByConstructorAttribute Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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) |