Share via


UnitOfMeasure Property

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

Gets or sets the value in the UnitOfMeasureColumn column of the InventorySkusDataSet..::.InventorySkusDataTable table.

Namespace:  Microsoft.CommerceServer.Inventory
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Property UnitOfMeasure As String
'Usage
Dim instance As InventorySkusDataSet..::.InventorySku
Dim value As String

value = instance.UnitOfMeasure

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

Property Value

Type: System..::.String
Unit for Quantity fields e.g. OnHand Quantity is 6 would mean 6 units or 6 pounds based on the Units of Measure that is mentioned.

Exceptions

Exception Condition
StrongTypingException

The value for column UnitOfMeasure in table InventorySkus is DBNull.

Remarks

The value in the UnitOfMeasureColumn column of the InventorySkusDataSet..::.InventorySkusDataTable table.

Permissions

See Also

Reference

InventorySkusDataSet..::.InventorySku Class

InventorySkusDataSet..::.InventorySku Members

Microsoft.CommerceServer.Inventory Namespace