Freigeben über


IsRequired Property

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

Gets or sets the value in the IsRequiredColumn column of the CatalogPropertiesDataSet..::.CatalogPropertiesDataTable table.

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

Syntax

'Declaration
Public Property IsRequired As Boolean
'Usage
Dim instance As CatalogPropertiesDataSet..::.CatalogProperty
Dim value As Boolean

value = instance.IsRequired

instance.IsRequired = value
public bool IsRequired { get; set; }
public:
property bool IsRequired {
    bool get ();
    void set (bool value);
}
public function get IsRequired () : boolean
public function set IsRequired (value : boolean)

Property Value

Type: System..::.Boolean
The value from the IsRequiredColumn column of the CatalogPropertiesDataSet..::.CatalogPropertiesDataTable table.

Remarks

DataSet: CatalogPropertiesDataSet Table: CatalogProperties Column: IsRequired

The IsRequired property is used by the UI only and not the subsystem using this object. Creating a property and adding the property to a product definition without providing a value to the IsRequired property does not throw an exception. However, an exception is thrown when you attempt to save a product without the IsRequired property set when using the CatalogManager UI. The IsRequired property is only validated in the UI and not the subsytem.

Permissions

See Also

Reference

CatalogPropertiesDataSet..::.CatalogProperty Class

CatalogPropertiesDataSet..::.CatalogProperty Members

Microsoft.CommerceServer.Catalog Namespace