Delen via


CrmConfigurationManager.CreateContext-methode

Van toepassing op: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the configured OrganizationServiceContext instance.

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

Gebruik

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

returnValue = CrmConfigurationManager.CreateContext(contextName, allowDefaultFallback)

Syntaxis

'Declaratie
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
)

Parameters

  • allowDefaultFallback
    Type: Boole-waarde. Whether to allow fallback to the default.

Retourwaarde

Type: OrganizationServiceContext
The configured context.

Thread-veiligheid

Alle openbare statische (Shared in Visual Basic) leden van dit type zijn thread-veilig. Exemplaarleden zijn niet gegarandeerd thread-veilig.

Platforms

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

Zie ook

Verwijzing

CrmConfigurationManager-klasse
CrmConfigurationManager-leden
Microsoft.Xrm.Client.Configuration-naamruimte

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