Workflow Constructor

Creates a Workflow object from the ASMX-based Workflow web service.

Namespace:  [Workflow Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Workflow.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Workflow.asmx?wsdl

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Workflow()
public Workflow()

Remarks

To create an object that is equivalent to Workflow by using the Windows Communication Foundation (WCF) API, use one of the WorkflowClient constructors.

Examples

In the following statement, WorkflowWebSvc is an arbitrary namespace for the ASMX-based Workflow web service.

private static WorkflowWebSvc.Workflow workflow = new WorkflowWebSvc.Workflow();

In the following statement, SvcWorkflow is an arbitrary namespace for the WCF-based Workflow service. The endpt parameter is a String value that specifies the name of the client endpoint address in the app.config file (or in the web.config file for web applications).

private static SvcWorkflow.WorkflowClient workflowClient = new SvcWorkflow.WorkflowClient(endpt);

See Also

Reference

Workflow Class

Workflow Members

Workflow Web Service