ProductCategory Property

Gets or sets the catalog product category that the current line item instance is associated with.

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

Syntax

'Declaration
Public Property ProductCategory As String
'Usage
Dim instance As LineItem
Dim value As String

value = instance.ProductCategory

instance.ProductCategory = value
public string ProductCategory { get; set; }
public:
property String^ ProductCategory {
    String^ get ();
    void set (String^ value);
}
public function get ProductCategory () : String
public function set ProductCategory (value : String)

Property Value

Type: System..::.String
The catalog product category that the current instance is associated with.

Exceptions

Exception Condition
ArgumentException

The length of the string being set is greater than the maximum allowable length specified in the orders storage mapping file.

Remarks

Stores the catalog product category that the current line item instance is associated with. ProductCategory is trimmed of leading and trailing white space characters before being set. The default maximum length for ProductCategory is 255 characters, as defined in the corresponding table column constraint specified in the default Orders storage mapping file, OrderObjectMappings.xml.

Permissions

See Also

Reference

LineItem Class

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace