Dijeli putem


DefaultStringValue Field

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

The DefaultStringValue field of the CatalogPropertiesDataSetSchema class contains a constant used to indicate the default value for properties of the string type. This field is constant.

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

Syntax

'Declaration
Public Const DefaultStringValue As String
'Usage
Dim value As String

value = CatalogPropertiesDataSetSchema.DefaultStringValue
public const string DefaultStringValue
public:
literal String^ DefaultStringValue
public const var DefaultStringValue : String

Remarks

This field stores a constant used to indicate the default value for properties of the string type.

Specifies the column name in the CatalogProperties table as "u_DefaultValue". DataSet: CatalogPropertiesDataSet Table: CatalogProperties Column: u_DefaultValue.

Examples

string language = "en-US";
// The language sensitive default value is stored in the u_defaultvalue_<language> column
string defaultValueColumn = string.Format("{0}_{1}", CatalogPropertiesDataSetSchema.DefaultStringValue, language);
// Check that the default value column exists before setting th
if (property.Information.CatalogProperties.Columns.Contains(defaultValueColumn))
{
  property.Information.CatalogProperties[0][defaultValueColumn] = "en-US default value";
}

Permissions

See Also

Reference

CatalogPropertiesDataSetSchema Class

CatalogPropertiesDataSetSchema Members

Microsoft.CommerceServer.Catalog Namespace