Share via


GetProperties Method

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

Returns a CatalogPropertiesDataSet containing information about all the properties in the catalog system.

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

Syntax

'Declaration
Public Function GetProperties As CatalogPropertiesDataSet
'Usage
Dim instance As CatalogContext
Dim returnValue As CatalogPropertiesDataSet

returnValue = instance.GetProperties()
public CatalogPropertiesDataSet GetProperties()
public:
CatalogPropertiesDataSet^ GetProperties()
public function GetProperties() : CatalogPropertiesDataSet

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogPropertiesDataSet
A CatalogPropertiesDataSet containing information about all the properties in the catalog system and their attributes.

Remarks

The CatalogPropertiesDataSet contains all the attributes for all the properties in the catalog system.

Examples

This example shows how to get all the properties in the catalog system and access their attributes.

private void GetProperties(CatalogContext catalogContext)
{
  CatalogPropertiesDataSet catalogProperties = catalogContext.GetProperties();
  foreach(CatalogPropertiesDataSet.CatalogProperty catalogProperty in catalogProperties.CatalogProperties)
  {
    string propertyName = catalogProperty.PropertyName;
    string displayName = catalogProperty.DisplayName;
  }
}

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

GetProperties Overload

Microsoft.CommerceServer.Catalog Namespace