Class CartFilter
This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Filter class used in SerializableCartDB to filter which carts to retrieve.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Order.Internal.DataAccess
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public class CartFilter : OrderSearchFilter
Constructors
CartFilter()
Creates new instance of CartFilter.
Declaration
public CartFilter()
CartFilter(Guid, String)
Creates new instance of CartFilter with customerId
and name
.
Declaration
public CartFilter(Guid customerId, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerId | The customer identifier. |
System.String | name | The name of cart. |
Properties
CartId
Specifies that only cart which has specified identifier should be returned.
Declaration
public int CartId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CustomerId
Specifies that only carts created by specified customer should be returned.
Declaration
public Guid CustomerId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ExcludeName
Specifies that carts which has specified name should be excluded.
Declaration
public string ExcludeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Specifies that only carts which has specified name should be returned.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This option should not be used without CustomerId option.