dotConnect for Salesforce Documentation
DeferredLogin Property
See Also  Send comments on this topic.
Devart.Data.Salesforce Namespace > SalesforceConnectionStringBuilder Class : DeferredLogin Property

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

Visual Basic (Declaration) 
Public Property DeferredLogin As Boolean
C# 
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 Devart.Data.Salesforce.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

Platforms:Windows Server 2003 R2, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also