CrmConfigurationManager.CreateService Method (CrmConnection, String, Boolean)
Applies To: Dynamics CRM 2013
Retrieves the configured IOrganizationService instance.
Namespace: Microsoft.Xrm.Client.Configuration
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static IOrganizationService CreateService(
CrmConnection connection,
string serviceName = null,
bool allowDefaultFallback = false
)
public:
static IOrganizationService^ CreateService(
CrmConnection^ connection,
String^ serviceName = null,
bool allowDefaultFallback = false
)
static member CreateService :
connection:CrmConnection *
serviceName:string = null *
allowDefaultFallback:bool = false -> IOrganizationService
Public Shared Function CreateService (
connection As CrmConnection,
serviceName As String,
allowDefaultFallback As Boolean
) As IOrganizationService
Parameters
- connection
Type: Microsoft.Xrm.Client.CrmConnection
serviceName
Type: System.StringType: String.
allowDefaultFallback
Type: System.BooleanType: Boolean. Whether to allow fallback to the default.
Return Value
Type: Microsoft.Xrm.Sdk.IOrganizationService
Type: IOrganizationService.
See Also
CreateService Overload
CrmConfigurationManager Class
Microsoft.Xrm.Client.Configuration Namespace
Return to top