Validate Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Validates the list of catalogs to export.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Overridable Sub Validate
'Usage
Dim instance As ExportOptions
instance.Validate()
public virtual void Validate()
public:
virtual void Validate()
public function Validate()
Exceptions
Exception | Condition |
---|---|
ValidationException | The ProductsAndCategoriesClause should be specified if the export mode is ExpressionBased. |
ValidationException | The catalog name in the CatalogsToExport property is invalid. |
Remarks
Validation ensures that your catalog XML file conforms to the proper schema.
This method performs the following validations:
Ensures the names of the catalogs specified in the CatalogsToExport property are valid.
Ensures that the ProductsAndCategoriesClause property is not empty when the Mode property is set to ExpressionBased.
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