SalesforceCommand Constructor(String,SalesforceConnection)
Initializes a new instance of the
SalesforceCommand class with the text of the query and a %% object.
The following example creates a
SalesforceCommand and sets some of its properties.
public void CreateCommand()
{
SalesforceConnection salesforceConnection = new SalesforceConnection(
"Server=login.salesforce.com;User Id= [email protected];Password=mypassword;Security Token=qweASDzcx1234567890rtyui;");
string mySelectQuery = "SELECT * FROM Account";
SalesforceCommand salesforceCommand = new SalesforceCommand(mySelectQuery, salesforceConnection);
salesforceCommand.FetchSize = 100;
}
Public Sub CreateCommand()
Dim salesforceConnection As New SalesforceConnection( _
"Server=login.salesforce.com;User Id= [email protected];Password=mypassword;Security Token=qweASDzcx1234567890rtyui;")
Dim mySelectQuery As String = _
"SELECT * FROM Account"
Dim salesforceCommand As New SalesforceCommand(mySelectQuery, salesforceConnection)
salesforceCommand.FetchSize = 100
End Sub
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