Share via


Namespace Property

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

Gets or sets the namespace to validate in the xml file.

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

Syntax

'Declaration
Public Property Namespace As String
'Usage
Dim instance As ImportOptions
Dim value As String

value = instance.Namespace

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

Property Value

Type: System..::.String
The namespace to validate in the xml file (CatalogObjectCollection<(Of <(TObject, TDataSet>)>) or InventoryCatalogCollection).

Remarks

Validates the namespace in the xml file. If the namespace is specified then the import process will validate that the root element in the xml file has the specified namespace. The root element will be CatalogObjectCollection<(Of <(TObject, TDataSet>)>) for catalog xml files and InventoryCatalogCollection for inventory xml files. If the namespaces do not match a ValidationException will be thrown. If this parameter is nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string then no validation will be performed.

Permissions

See Also

Reference

ImportOptions Class

ImportOptions Members

Microsoft.CommerceServer.Catalog Namespace