Export (0) Print
Expand All

IWorkflowContext.CreateCrmService Method (Overloaded)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Creates an instance of CrmService to be used by workflow activities.

Overload List

NameDescription
IWorkflowContext.CreateCrmService Method ()Creates an instance of CrmService to be used by workflow activities.
IWorkflowContext.CreateCrmService Method (Boolean)Creates an instance of CrmService to be used by workflow activities as an admin user.

IWorkflowContext.CreateCrmService Method ()

Creates an instance of CrmService to be used by workflow activities.Creates an instance of CrmService to be used by workflow activities.

Syntax

[Visual Basic .NET]
Function CreateCrmService() As ICrmService
[C#]
ICrmService CreateCrmService();

Parameters

This method takes no parameters.

Return Value

Returns an ICrmService type.

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference

IWorkflowContext.CreateCrmService Method (Boolean)

Creates an instance of CrmService to be used by workflow activities as an admin user.

Syntax

[Visual Basic .NET]
Function CreateCrmService(
  ByVal asAdminUser As Boolean
) As ICrmService
[C#]
ICrmService CreateCrmService(
  bool  asAdminUser
);

Parameters

asAdminUser

Specifies whether to create the instance as an admin user.

Return Value

Returns an ICrmService type.

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft