Edit

Share via


WorkflowMarkupSerializer.CreateInstance Method

Definition

Creates an instance of the specified Type using the specified WorkflowMarkupSerializationManager.

C#
protected virtual object CreateInstance(System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, Type type);

Parameters

serializationManager
WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager supporting this operation.

type
Type

The specified Type.

Returns

An instance of the specified Type.

Exceptions

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

-or-

type is a null reference (Nothing).

Remarks

CreateInstance uses the type constructor that best matches the specified parameter.

Applies to

Product Versions
.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