CrmConfigurationManager.CreateContext Method (String, Boolean)
Applies To: Dynamics CRM 2015
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
contextName
Type: System.StringType: String. The context name.
allowDefaultFallback
Type: System.BooleanType: Boolean. Whether to allow fallback to the default.
Return Value
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContext
Type: OrganizationServiceContext
The configured context.
See Also
CrmConfigurationManager Class
Microsoft.Xrm.Client.Configuration Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright