Partager via


CrmConfigurationManager.GetConnectionStringNameFromContext Method (String, Boolean)

 

Applies To: Dynamics CRM 2015

Retrieves the connection string name from the context name.

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

Syntax

public static string GetConnectionStringNameFromContext(
    string contextName,
    bool allowDefaultFallback = false
)
public:
static String^ GetConnectionStringNameFromContext(
    String^ contextName,
    bool allowDefaultFallback = false
)
static member GetConnectionStringNameFromContext : 
        contextName:string *
        allowDefaultFallback:bool = false -> string
Public Shared Function GetConnectionStringNameFromContext (
    contextName As String,
    allowDefaultFallback As Boolean
) As String

Parameters

Return Value

Type: System.String

Type: String
.

See Also

CrmConfigurationManager Class
Microsoft.Xrm.Client.Configuration Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright