Partilhar via


Método CrmConfigurationManager.CreateContext

Aplica-se a: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the configured OrganizationServiceContext instance.

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

Uso

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

returnValue = CrmConfigurationManager.CreateContext(contextName, allowDefaultFallback)

Sintaxe

'Declaração
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
)

Parâmetros

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

Valor de Retorno

Type: OrganizationServiceContext
The configured context.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

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

Consulte também

Referência

Classe CrmConfigurationManager
Membros de CrmConfigurationManager
Namespace Microsoft.Xrm.Client.Configuration

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