This documentation is archived and is not being maintained.

IWorkflowContext.CreateMetadataService Method (Overloaded)

Dynamics
banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

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

Overload ListDescription
IWorkflowContext.CreateMetadataService Method ()Creates an instance of MetadataService to be used by workflow activities.
IWorkflowContext.CreateMetadataService Method (Boolean)Creates an instance of MetadataService to be used by workflow activities as an admin user.

IWorkflowContext.CreateMetadataService Method ()

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

Syntax

[Visual Basic .NET]
Function CreateMetadataService() As IMetadataService
[C#]
IMetadataService CreateMetadataService();

Parameters

This method takes no parameters.

Return Value

Returns an IMetadataService type.

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference

IWorkflowContext.CreateMetadataService Method (Boolean)

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

Syntax

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

Parameters

asAdminUser

Specifies whether to create the instance as an admin user.

Return Value

Returns an IMetadataService type.

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show: