PexCreatableByConstructorAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种属性,用于定义可通过调用其构造函数创建的实例类型。
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
- 继承
- 属性
构造函数
| PexCreatableByConstructorAttribute(Type, String[]) |
创建此类型的实例。 |
属性
| CreatableTypeDefinition |
获取要创建的类型。 (继承自 PexCreatableAttributeBase) |
| MaySetRemainingFieldsByReflection |
未由此属性显式处理的字段是否可以通过反射设置。 谨慎使用。 (继承自 PexCreatableByMethodAndSettersAttributeBase) |
| Name |
获取此包的名称。 (继承自 PexExplorationPackageAttributeBase) |
方法
| AfterExploration(IPexExplorationComponent, Object) |
在探索结束之后执行的回调。 (继承自 PexExplorationPackageAttributeBase) |
| BeforeExploration(IPexExplorationComponent) |
在探索开始之前执行的回调。 (继承自 PexCreatableAttributeBase) |
| Decorate(Name, IPexDecoratedComponentElement) |
此方法可以向 IntelliTest 公告筛选器、焦点和包。 (继承自 PexExplorationPackageAttributeBase) |
| Initialize(IPexExplorationEngine) |
初始化指定的探索包。 可以与服务进行交互。 (继承自 PexExplorationPackageAttributeBase) |
| Load(IContainer) |
此方法提供安装或替代服务的机会。 (继承自 PexExplorationPackageAttributeBase) |
| ToString() | (继承自 PexCreatableAttributeBase) |
| TryInstantiate(IPexExplorationComponent, TypeEx[], IPexCreatable) |
尝试实例化具有指定参数的此定义。 (继承自 PexCreatableByMethodAndSettersAttribute) |
| Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) |
在特定可见性上下文中验证属性。 (继承自 PexCreatableByMethodAndSettersAttribute) |