Share via


CrmConfigurationManager.CreateContext Method (String, Boolean)

 

Applies To: Dynamics CRM 2013

Retrieves the configured OrganizationServiceContext instance.

Namespace:   Microsoft.Xrm.Client.Configuration
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static OrganizationServiceContext CreateContext(
    string contextName = null,
    bool allowDefaultFallback = false
)
public:
static OrganizationServiceContext^ CreateContext(
    String^ contextName = null,
    bool allowDefaultFallback = false
)
static member CreateContext : 
        contextName:string = null *
        allowDefaultFallback:bool = false -> OrganizationServiceContext
Public Shared Function CreateContext (
    contextName As String,
    allowDefaultFallback As Boolean
) As OrganizationServiceContext

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContext

Type: OrganizationServiceContext
The configured context.

See Also

CrmConfigurationManager Class
Microsoft.Xrm.Client.Configuration Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top