CrmConfigurationManager.CreateContext メソッド

適用対象: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the configured OrganizationServiceContext instance.

名前空間: Microsoft.Xrm.Client.Configuration
アセンブリ: Microsoft.Xrm.Client (Microsoft.Xrm.Client.dll に含まれる)

使用法

'使用
Dim contextName As String
Dim allowDefaultFallback As Boolean
Dim returnValue As OrganizationServiceContext

returnValue = CrmConfigurationManager.CreateContext(contextName, allowDefaultFallback)

構文

'宣言
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
)

パラメーター

  • contextName
    Type: 文字列. The context name.
  • allowDefaultFallback
    Type: Boolean. Whether to allow fallback to the default.

戻り値

Type: OrganizationServiceContext
The configured context.

スレッド セーフ

この種類のパブリックな静的 (Visual Basic では Shared) メンバーはスレッド セーフです。インスタンス メンバーがスレッド セーフであることは保証されません。

プラットフォーム

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

関連項目

参照

CrmConfigurationManager クラス
CrmConfigurationManager のメンバー
Microsoft.Xrm.Client.Configuration 名前空間

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