Прочетете на английски Редактиране

Споделяне чрез


ActivityCodeGeneratorAttribute Constructors

Definition

Initializes a new instance of the ActivityCodeGeneratorAttribute class.

Overloads

ActivityCodeGeneratorAttribute(String)

Initializes a new instance of the ActivityCodeGeneratorAttribute class, also initializing the CodeGeneratorTypeName.

ActivityCodeGeneratorAttribute(Type)

Initializes a new instance of the ActivityCodeGeneratorAttribute class from a code generator Type.

ActivityCodeGeneratorAttribute(String)

Initializes a new instance of the ActivityCodeGeneratorAttribute class, also initializing the CodeGeneratorTypeName.

C#
public ActivityCodeGeneratorAttribute(string codeGeneratorTypeName);

Parameters

codeGeneratorTypeName
String

The specified value for CodeGeneratorTypeName.

Exceptions

codeGeneratorTypeName is a null reference (Nothing in Visual Basic).

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ActivityCodeGeneratorAttribute(Type)

Initializes a new instance of the ActivityCodeGeneratorAttribute class from a code generator Type.

C#
public ActivityCodeGeneratorAttribute(Type codeGeneratorType);

Parameters

codeGeneratorType
Type

The Type to initialize the instance from.

Exceptions

codeGeneratorType is a null reference (Nothing in Visual Basic).

codeGeneratorType is not assignable to the type of a code generator or has no parameterless constructor.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1