LineItemCount Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the current count of line items.

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

Syntax

'Declaration
Public ReadOnly Property LineItemCount As Integer
'Usage
Dim instance As OrderGroup
Dim value As Integer

value = instance.LineItemCount
public int LineItemCount { get; }
public:
property int LineItemCount {
    int get ();
}
public function get LineItemCount () : int

Property Value

Type: System..::.Int32
The line item count.

Exceptions

Exception Condition
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

Sums the number of items currently in the OrderGroup.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace