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= name@company.com;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= name@company.com;Password=mypassword;Security Token=qweASDzcx1234567890rtyui;")
Dim mySelectQuery As String = _
"SELECT * FROM Account"
Dim salesforceCommand As New SalesforceCommand(mySelectQuery, salesforceConnection)
salesforceCommand.FetchSize = 100
End Sub