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
- campaignItemId
Type: System..::.Int32
ID of the discount this row represents.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DiscountPrioritySet..::.DiscountPrioritiesDataTable Class