PexCreatableByMethodAttribute 构造函数

定义

重载

PexCreatableByMethodAttribute(Type, Type, String, String[])

创建此类型的实例。

PexCreatableByMethodAttribute(Type, String, Type, String, String[])

创建此类型的实例。

PexCreatableByMethodAttribute(Type, Type, String, String[])

创建此类型的实例。

public:
 PexCreatableByMethodAttribute(Type ^ creatableType, Type ^ creationMethodDeclaringType, System::String ^ creationMethodName, ... cli::array <System::String ^> ^ creationMethodArgumentFieldNames);
public PexCreatableByMethodAttribute (Type creatableType, Type creationMethodDeclaringType, string creationMethodName, params string[] creationMethodArgumentFieldNames);
new Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAttribute : Type * Type * string * string[] -> Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAttribute
Public Sub New (creatableType As Type, creationMethodDeclaringType As Type, creationMethodName As String, ParamArray creationMethodArgumentFieldNames As String())

参数

creatableType
Type

可创建对象的类型。

creationMethodDeclaringType
Type

包含一种创建方法的类型。 可能 null 用于值类型。

creationMethodName
String

创建方法的名称。 可能 null 为构造函数。

creationMethodArgumentFieldNames
String[]

字段名称的列表,由将其值作为参数使用的创建方法设置。

适用于

PexCreatableByMethodAttribute(Type, String, Type, String, String[])

创建此类型的实例。

public:
 PexCreatableByMethodAttribute(Type ^ creatableTypeAssembly, System::String ^ creatableTypeFullName, Type ^ creationMethodDeclaringType, System::String ^ creationMethodName, ... cli::array <System::String ^> ^ creationMethodArgumentFieldNames);
public PexCreatableByMethodAttribute (Type creatableTypeAssembly, string creatableTypeFullName, Type creationMethodDeclaringType, string creationMethodName, params string[] creationMethodArgumentFieldNames);
new Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAttribute : Type * string * Type * string * string[] -> Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAttribute
Public Sub New (creatableTypeAssembly As Type, creatableTypeFullName As String, creationMethodDeclaringType As Type, creationMethodName As String, ParamArray creationMethodArgumentFieldNames As String())

参数

creatableTypeAssembly
Type

可创建对象类型程序集。

creatableTypeFullName
String

可创建对象类型的全名。

creationMethodDeclaringType
Type

包含一种创建方法的类型。 可能 null 用于值类型。

creationMethodName
String

创建方法的名称。 可能 null 为构造函数。

creationMethodArgumentFieldNames
String[]

字段名称的列表,由将其值作为参数使用的创建方法设置。

适用于