WorkflowMarkupSerializer.CreateInstance Method (WorkflowMarkupSerializationManager, Type)

 

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

Namespace:   System.Workflow.ComponentModel.Serialization
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected virtual object CreateInstance(
	WorkflowMarkupSerializationManager serializationManager,
	Type type
)

Parameters

serializationManager
Type: System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager supporting this operation.

type
Type: System.Type

The specified Type

Return Value

Type: System.Object

An instance of the specified Type.

Exception Condition
ArgumentNullException

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

ArgumentNullException

type is a null reference (Nothing).

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

.NET Framework
Available since 3.0
Return to top
Show: