dotConnect for Salesforce Documentation
Devart.Data.Salesforce Namespace / SalesforceConnectionStringBuilder Class / DeferredLogin Property

In This Topic
    DeferredLogin Property
    In This Topic
    Determines whether to delay establishing an actual connection to Salesforce until some data that is not present in the local cache is queried or data is modified.
    Syntax
    'Declaration
     
    Public Property DeferredLogin As Boolean
    public bool DeferredLogin {get; set;}

    Property Value

    true, if establishing an actual connection to Salesforce must be delayed until some data that is not present in the local cache is queried or data is modified; otherwise, false.
    Remarks

    If this parameter is set to true, the SalesforceConnection actually does not connect to Salesforce when you open a connection. It works with local data cache until you query data that is not cached or modify data. For more details, see Cache Overview.

    A side effect of this may cause the following situation: if your connection string parameters are incorrect, but the data cache is present (for example, when your SecurityToken expires or a password to Salesforce account is changed), you won't get any connection errors when working with a connection till you work only with cached data. Only when you try to query data that is not cached or modify data, you will get the corresponding connection error.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also