Share via


SetPropertyOnOrderForms Method

Sets the value of the specified weakly-typed property on every order form in the current order group.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub SetPropertyOnOrderForms ( _
    keyName As String, _
    propValue As Object _
)
'Usage
Dim instance As OrderGroup
Dim keyName As String
Dim propValue As Object

instance.SetPropertyOnOrderForms(keyName, _
    propValue)
public void SetPropertyOnOrderForms(
    string keyName,
    Object propValue
)
public:
void SetPropertyOnOrderForms(
    String^ keyName, 
    Object^ propValue
)
public function SetPropertyOnOrderForms(
    keyName : String, 
    propValue : Object
)

Parameters

  • keyName
    Type: System..::.String
    The weakly-typed property name to modify. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

keyName is nullNothingnullptra null reference (Nothing in Visual Basic).

PropertyConflictException

The weakly-typed property name specified in keyName conflicts with a strongly-typed property name or Pipeline Adapter mapped Dictionary key name of the order group or an order form.

InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

SetPropertyOnOrderForms can be used to set values for weakly-typed properties only. There cannot be a weakly-typed property with the same name as a strongly-typed property.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace