EMDocumentsGetDMCreativeIDForCampaign Method (SqlConnection, SqlTransaction, Int32)
|
Alterian Email Manager 6.2.3 SDK Help File
Fetches the DM Creative Id for a given campaign if one can be found.
Namespace:
DMLibraryAssembly:
DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420
Syntaxpublic static int GetDMCreativeIDForCampaign(
SqlConnection connection,
SqlTransaction passedInTransaction,
int campaignId
)
Public Shared Function GetDMCreativeIDForCampaign (
connection As SqlConnection,
passedInTransaction As SqlTransaction,
campaignId As Integer
) As Integer
public:
static int GetDMCreativeIDForCampaign(
SqlConnection^ connection,
SqlTransaction^ passedInTransaction,
int campaignId
)
static member GetDMCreativeIDForCampaign :
connection : SqlConnection *
passedInTransaction : SqlTransaction *
campaignId : int -> int
DMLibrary.EMDocuments.GetDMCreativeIDForCampaign = function(connection, passedInTransaction, campaignId);
Parameters
- connection
- Type: System.Data.SqlClientSqlConnection
The open connection to use to pull the ID. - passedInTransaction
- Type: System.Data.SqlClientSqlTransaction
The transaction being used with the connection being passed. This can be null if no transaction is being used - campaignId
- Type: SystemInt32
Id of the Campaign to get the Creative ID for
Return Value
Type:
Int32The id of the DM Creative. If none is found, the method will throw an InvalidRequestException.
See Also