Partager via


AddDiscountPriority Method (Int32, Int32)

Creates a row using the specified values and adds it to the table.

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

Syntax

'Declaration
Public Function AddDiscountPriority ( _
    campaignItemId As Integer, _
    priority As Integer _
) As DiscountPrioritySet..::.DiscountPriority
'Usage
Dim instance As DiscountPrioritySet..::.DiscountPrioritiesDataTable
Dim campaignItemId As Integer
Dim priority As Integer
Dim returnValue As DiscountPrioritySet..::.DiscountPriority

returnValue = instance.AddDiscountPriority(campaignItemId, _
    priority)
public DiscountPrioritySet..::.DiscountPriority AddDiscountPriority(
    int campaignItemId,
    int priority
)
public:
DiscountPrioritySet..::.DiscountPriority^ AddDiscountPriority(
    int campaignItemId, 
    int priority
)
public function AddDiscountPriority(
    campaignItemId : int, 
    priority : int
) : DiscountPrioritySet..::.DiscountPriority

Parameters

  • priority
    Type: System..::.Int32
    The priority of the discount this row represents.

Return Value

Type: Microsoft.CommerceServer.Marketing..::.DiscountPrioritySet..::.DiscountPriority
A new DiscountPrioritySet..::.DiscountPriority set containing the added set.

Remarks

The DiscountPrioritySet object must be saved before these changes will be persisted to the database.

Permissions

See Also

Reference

DiscountPrioritySet..::.DiscountPrioritiesDataTable Class

DiscountPrioritySet..::.DiscountPrioritiesDataTable Members

AddDiscountPriority Overload

Microsoft.CommerceServer.Marketing Namespace