Click or drag to resize
OrderInfoProviderExtensionsGetBySite Method
Returns a query for all orders for specified site.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public static ObjectQuery<OrderInfo> GetBySite(
	this IOrderInfoProvider orderInfoProvider,
	int siteId
)

Parameters

orderInfoProvider
Type: CMS.EcommerceIOrderInfoProvider
Provider for OrderInfo management.
siteId
Type: SystemInt32
ID of the site the orders should be retrieved from.

Return Value

Type: ObjectQueryOrderInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IOrderInfoProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when orderInfoProvider is null.
See Also