UnitOfMeasure Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or Sets the unit of measure.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property UnitOfMeasure As String
'Usage
Dim instance As 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
The unit of measure.
Remarks
This is an optional attribute which specifies the unit of measure for this product. The UnitOfMeasure is limited to 20 characters.
The unit of measure for the product, for example, liters, pounds, or grams. An on hand quantity of 6 would mean 6 units or 6 pounds based on the UnitOfMeasure that is specified.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.