IPluginExecutionContext.CreateCrmService Method (Overloaded)
IPluginExecutionContext.CreateCrmService Method (Overloaded)
banner art

Returns an instance of the CrmService Web service.

Overload ListDescription
IPluginExecutionContext.CreateCrmService Method (Boolean)Returns an instance of the CrmService Web service using the current user ID.
IPluginExecutionContext.CreateCrmService Method (Guid)Returns an instance of the CrmService Web service using the specified user ID.

IPluginExecutionContext.CreateCrmService Method (Boolean)

Returns an instance of the CrmService Web service using the current user ID.

Syntax

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

Parameters

useCurrentUserId

Specifies the ID of the current user.

Return Value

Returns an ICrmService type.

Remarks

Do not use this method if you are writing code for a plug-in in that is used in a child pipeline. In a child pipeline, you must instantiate the CrmService manually.

Requirements

Namespace: Microsoft.Crm.Sdk

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference

IPluginExecutionContext.CreateCrmService Method (Guid)

Returns an instance of the CrmService Web service using the specified user ID.

Syntax

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

Parameters

userId

Specifies the ID of the current user.

Return Value

Returns an ICrmService type.

Remarks

Do not use this method if you are writing code for a plug-in in that is used in a child pipeline. In a child pipeline, you must instantiate the CrmService manually.

Requirements

Namespace: Microsoft.Crm.Sdk

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference


© 2009 Microsoft Corporation. All rights reserved.


© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View