Condividi tramite


Metodo CrmConfigurationManager.CreateContext

Si applica a: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the configured OrganizationServiceContext instance.

Spazio dei nomi: Microsoft.Xrm.Client.Configuration
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Uso

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

returnValue = CrmConfigurationManager.CreateContext(contextName, allowDefaultFallback)

Sintassi

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

Parametri

  • contextName
    Type: Stringa. The context name.
  • allowDefaultFallback
    Type: Booleano. Whether to allow fallback to the default.

Valore restituito

Type: OrganizationServiceContext
The configured context.

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

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

Vedere anche

Riferimento

Classe CrmConfigurationManager
Membri CrmConfigurationManager
Spazio dei nomi Microsoft.Xrm.Client.Configuration

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