Mode Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the import mode.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property Mode As ImportMode
'Usage
Dim instance As ImportOptions
Dim value As ImportMode
value = instance.Mode
instance.Mode = value
public ImportMode Mode { get; set; }
public:
property ImportMode Mode {
ImportMode get ();
void set (ImportMode value);
}
public function get Mode () : ImportMode
public function set Mode (value : ImportMode)
Property Value
Type: Microsoft.CommerceServer.Catalog..::.ImportMode
An ImportMode that contains the catalog import mode.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The import mode is invalid. |
Remarks
Enumeration values are:
Incremental - Update the existing catalog with the imported data. Do not delete existing data. If no catalog exists, create a new catalog.
Full - Replace the existing catalog with the imported catalog. If no catalog exists, create a new catalog.
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.
See Also
Reference
Microsoft.CommerceServer.Catalog Namespace
Other Resources
Importing Catalog Data by Using the Catalog API
How to Import From an XML File