This documentation is archived and is not being maintained.

WorkflowHostingEndpoint.OnGetCreationContext Method

Override to create a newWorkflowCreationContext instance.

Namespace:  System.ServiceModel.Activities
Assembly:  System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)

protected internal virtual WorkflowCreationContext OnGetCreationContext(
	Object[] inputs,
	OperationContext operationContext,
	Guid instanceId,
	WorkflowHostingResponseContext responseContext


Type: System.Object[]
The inputs to the service operation.
Type: System.ServiceModel.OperationContext
Provides the execution context of the service operation invoked.
Type: System.Guid
The instance ID of the workflow instance being created.
Type: System.ServiceModel.Activities.WorkflowHostingResponseContext
The WorkflowHostingEndpointResponseContext object that can be used to send replies back to the message source for a request/reply contract.

Return Value

Type: System.ServiceModel.Activities.WorkflowCreationContext
A workflow creation context object.

The following example shows how to implement the OnGetCreationContext(Object[], OperationContext, Guid, WorkflowHostingResponseContext) method.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.