Jaa


NewDirectMail Method

Creates a new DirectMail using the default values.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Function NewDirectMail ( _
    parentCampaignId As Integer _
) As DirectMail
'Usage
Dim instance As CampaignItemManager
Dim parentCampaignId As Integer
Dim returnValue As DirectMail

returnValue = instance.NewDirectMail(parentCampaignId)
public DirectMail NewDirectMail(
    int parentCampaignId
)
public:
DirectMail^ NewDirectMail(
    int parentCampaignId
)
public function NewDirectMail(
    parentCampaignId : int
) : DirectMail

Parameters

Return Value

Type: Microsoft.CommerceServer.Marketing..::.DirectMail
The newly created DirectMail object.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The parentCampaignId value was less than one.

EntityDoesNotExistException

The Campaign specified by parentCampaignId does not exist.

EntityStateException

The Campaign specified by parentCampaignId is deleted.

Remarks

Returns the newly created DirectMail with default values. The DirectMail is not persisted in the database until its Save method is called.

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

Microsoft.CommerceServer.Marketing Namespace