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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.