Share via


LanguageSensitive Property

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

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

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

Syntax

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

value = instance.LanguageSensitive

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

Property Value

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

Remarks

DataSet: CatalogPropertiesDataSet Table: CatalogProperties Column: LanguageSensitive.

Examples

// Creates a multilingual property.
internal CatalogProperty CreateMultilingualProperty(string propertyName, CatalogDataType catalogDataType, int maxLength)
{
  CatalogProperty property = null;
  try
  {
    Debug.Assert(catalogDataType == CatalogDataType.String || catalogDataType == CatalogDataType.FilePath
    || catalogDataType == CatalogDataType.Enumeration || catalogDataType == CatalogDataType.Text);
    // Create the property 
    property = catalogContext.CreateProperty(propertyName, catalogDataType, maxLength);
    // Set the LanguageSensitive property to convert the property to multilingual
    property.Information.CatalogProperties[0].LanguageSensitive = true;
    // Call property.Save to Save the changes to the catalog system
    property.Save();
  }
  catch (EntityAlreadyExistsException ex)
  {
    string message = string.Format("The property {0} already exists", ex.EntityName);
    Console.WriteLine(message);
  }
  return property;
} 

Permissions

See Also

Reference

CatalogPropertiesDataSet..::.CatalogProperty Class

CatalogPropertiesDataSet..::.CatalogProperty Members

Microsoft.CommerceServer.Catalog Namespace