PexPreparationMethodAttribute 类

定义

标记用于准备类型的方法。 该方法必须在静态类中是可见的、静态的。 它可能拥有参数。

public ref class PexPreparationMethodAttribute sealed : Microsoft::Pex::Framework::PexAttributeBase
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public sealed class PexPreparationMethodAttribute : Microsoft.Pex.Framework.PexAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type PexPreparationMethodAttribute = class
    inherit PexAttributeBase
Public NotInheritable Class PexPreparationMethodAttribute
Inherits PexAttributeBase
继承
PexPreparationMethodAttribute
属性

注解

此特性附加到方法以指示需要准备的类型。

构造函数

PexPreparationMethodAttribute(String, String)

初始化 PexPreparationMethodAttribute 类的新实例。

PexPreparationMethodAttribute(Type)

初始化 PexPreparationMethodAttribute 类的新实例。

PexPreparationMethodAttribute(Type, String)

初始化 PexPreparationMethodAttribute 类的新实例。

属性

PreparedType

获取准备的类型

适用于