PexCreatableByMethodAndSettersAttribute Constructors

Definition

Overloads

PexCreatableByMethodAndSettersAttribute(Type, String, Boolean, Type, String, String[])

Creates an instance of this type.

C++
public:
 PexCreatableByMethodAndSettersAttribute(Type ^ creatableType, System::String ^ nameFormat, bool ignoreCase, Type ^ creationMethodDeclaringType, System::String ^ creationMethodName, ... cli::array <System::String ^> ^ creationMethodArgumentFieldNames);

Parameters

creatableType
Type

Type of the creatable.

nameFormat
String

The format string to build further non-public field names. For example, {0}Field

ignoreCase
Boolean

if set to true case is ignored both in the regular expression matching as well as in the property lookup.

creationMethodDeclaringType
Type

Type which contains a creation method. May be null for a value type.

creationMethodName
String

Name of the creation method. May be null for the constructor.

creationMethodArgumentFieldNames
String[]

List of field names which are set by the creation method which takes their values as arguments.

Applies to

Visual Studio SDK 2019 et Visual Studio SDK 2017
Produit Versions
Visual Studio SDK 2017, 2019

PexCreatableByMethodAndSettersAttribute(Type, String, String, Boolean, Type, String, String[])

Creates an instance of this type.

C++
public:
 PexCreatableByMethodAndSettersAttribute(Type ^ creatableTypeAssembly, System::String ^ creatableTypeFullName, System::String ^ nameFormat, bool ignoreCase, Type ^ creationMethodDeclaringType, System::String ^ creationMethodName, ... cli::array <System::String ^> ^ creationMethodArgumentFieldNames);

Parameters

creatableTypeAssembly
Type

The creatable type assembly.

creatableTypeFullName
String

Full name of the creatable type.

nameFormat
String

The format string to build further non-public field names. For example, {0}Field

ignoreCase
Boolean

if set to true case is ignored both in the regular expression matching as well as in the property lookup.

creationMethodDeclaringType
Type

Type which contains a creation method. May be null for a value type.

creationMethodName
String

Name of the creation method. May be null for the constructor.

creationMethodArgumentFieldNames
String[]

List of field names which are set by the creation method which takes their values as arguments.

Applies to

Visual Studio SDK 2019 et Visual Studio SDK 2017
Produit Versions
Visual Studio SDK 2017, 2019