Freigeben über


CrmConfigurationManager.CreateContext Methode

Betrifft: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the configured OrganizationServiceContext instance.

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

Verwendung

'Usage
Dim contextName As String
Dim allowDefaultFallback As Boolean
Dim returnValue As OrganizationServiceContext

returnValue = CrmConfigurationManager.CreateContext(contextName, allowDefaultFallback)

Syntax

'Declaration
Public Shared Function CreateContext ( _
    <OptionalAttribute> Optional contextName As String = Nothing, _
    <OptionalAttribute> Optional allowDefaultFallback As Boolean = False _
) As OrganizationServiceContext
public static OrganizationServiceContext CreateContext (
    [OptionalAttribute] string contextName,
    [OptionalAttribute] bool allowDefaultFallback
)

Parameter

  • allowDefaultFallback
    Type: Boolesch. Whether to allow fallback to the default.

Rückgabewert

Type: OrganizationServiceContext
The configured context.

Thread-Sicherheit

Alle öffentlichen statischen Mitglieder (Shared in Visual Basic) dieses Typs sind thread-sicher. Bei Instanzmitgliedern kann keine Garantie für die Thread-Sicherheit übernommen werden.

Plattformen

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Siehe auch

Referenz

CrmConfigurationManager Klasse
CrmConfigurationManager Mitglieder
Microsoft.Xrm.Client.Configuration Namespace

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.