- participantCoupon
- The participant coupon.
- itemNames
- The context item names that are to be set by the context manager.
- itemValues
- The context item values that are to be set by the context manager.
- contextCoupon
- The context coupon.
Visual Basic (Declaration) | |
---|---|
Sub SetItemValues( _ ByVal participantCoupon As Integer, _ ByVal itemNames As Object, _ ByVal itemValues As Object, _ ByVal contextCoupon As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IContextData Dim participantCoupon As Integer Dim itemNames As Object Dim itemValues As Object Dim contextCoupon As Integer instance.SetItemValues(participantCoupon, itemNames, itemValues, contextCoupon) |
C# | |
---|---|
void SetItemValues( int participantCoupon, object itemNames, object itemValues, int contextCoupon ) |
C++/CLI | |
---|---|
void SetItemValues( int participantCoupon, Object^ itemNames, Object^ itemValues, int contextCoupon ) |
Parameters
- participantCoupon
- The participant coupon.
- itemNames
- The context item names that are to be set by the context manager.
- itemValues
- The context item values that are to be set by the context manager.
- contextCoupon
- The context coupon.
For an example refer to JoinCommonContext.
If an item named in itemNames is not currently an common subject context item in the context, it will be added. The data type for a newly added item is the same as the data type of the element in itemValues that contains the item’s value. This method can only be performed within the scope of a context change transaction. The value of the input contextCoupon must denote the current transaction.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7