A collection of DmContacts
More...
A collection of DmContacts
dotMailer.Sdk.Collections.DmContactCollection.DmContactCollection |
( |
| ) |
|
Creates an empty contact collection
dotMailer.Sdk.Collections.DmContactCollection.DmContactCollection |
( |
DmService |
api | ) |
|
Creates an empty contact collection
- Parameters
-
dotMailer.Sdk.Collections.DmContactCollection.DmContactCollection |
( |
IEnumerable< IDmContact > |
contacts | ) |
|
Creates a new contact collection and adds the specified contacts
- Parameters
-
contacts | list of contact interfaces |
dotMailer.Sdk.Collections.DmContactCollection.DmContactCollection |
( |
DmService |
api, |
|
|
IEnumerable< IDmContact > |
contacts |
|
) |
| |
Creates a new contact collection and adds the specified contacts
- Parameters
-
void dotMailer.Sdk.Collections.DmContactCollection.AddRange |
( |
IEnumerable< IDmContact > |
iContacts | ) |
|
Adds a range of iDmContacts to the list. Coverts to DmCDontacts
- Parameters
-
iContacts | collection of contact interfaces |
ImportContactResult dotMailer.Sdk.Collections.DmContactCollection.AddToAddressBook |
( |
int |
addressBookId | ) |
|
Adds the collection to the address book with the specified id
- Parameters
-
addressBookId | Id of the address book |
- Returns
- ImportContactResult
Adds the collection to the address book
- Parameters
-
addressBook | the address book to add the contacts to |
- Returns
- ImportContactResult
bool dotMailer.Sdk.Collections.DmContactCollection.Contains |
( |
string |
emailAddress | ) |
|
checks to see if a contact in the collection contains the specified emailAddress
- Parameters
-
- Returns
- true if found
bool dotMailer.Sdk.Collections.DmContactCollection.Delete |
( |
| ) |
|
removes the collection of contacts from the account
- Returns
DmContact dotMailer.Sdk.Collections.DmContactCollection.GetContact |
( |
string |
emailAddress | ) |
|
returns a contact that has the specified email address
- Parameters
-
emailAddress | the email address of the required contact |
- Returns
- DmContact
DmContact dotMailer.Sdk.Collections.DmContactCollection.GetContact |
( |
int |
contactId | ) |
|
returns a contact that has the specified id
- Parameters
-
contactId | the id of the required contact |
- Returns
- DmContact
SendResultCollection dotMailer.Sdk.Collections.DmContactCollection.SendCampaign |
( |
int |
campaignId, |
|
|
DateTime |
dateTimeToSend |
|
) |
| |
Sends the specified campaign to the collection
- Parameters
-
campaignId | id of the campaign to send |
dateTimeToSend | date time to send the campaign |
- Returns
- SendResultCollection
Sends the specified campaign to the collection
- Parameters
-
campaign | campaign to send |
dateTimeToSend | date time to send the campaign |
- Returns
- SendResult
bool dotMailer.Sdk.Collections.DmContactCollection.Unsubscribe |
( |
| ) |
|
Unsubscribe the collection
Will call one api call per contact
- Returns
- true if successful
void dotMailer.Sdk.Collections.DmContactCollection.UpdateIds< T > |
( |
IEnumerable< T > |
contacts | ) |
|
Updates a source collection of IDmContacts, with the contact ids found in this collection
- Template Parameters
-
- Parameters
-
override string dotMailer.Sdk.Collections.DmContactCollection.ObjectType |
|
getset |
Returns the type name of the class Used by the serialisation process
DmContact dotMailer.Sdk.Collections.DmContactCollection.this[string emailAddress] |
|
get |