Share via


Category3.GetCategoryProperties Property (PIA)

The GetCategoryProperties property is a read-only recordset that contains the properties for this category. Both the properties that are present in the definition of this category and the built-in properties are returned.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Property GetCategoryProperties As _Recordset

[C#]

using Microsoft.CommerceServer.Interop.Catalog;
using ADODB26Lib;                              //For _Recordset
 …
public _Recordset GetCategoryProperties {get;}

[C#]

Property Value

A _Recordset interface to a Recordset object containing the category properties.

Exceptions

This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

The following table shows the custom COM errors that a COMException can wrap.

Constant Value Description
E_CAT_INVALID_RS_POINTER

[C#] 0x889800B7

[Visual Basic .NET] &H889800B7

The recordset pointer that you specified is invalid
E_CAT_INVALID_OPERATION_FOR_ROOT_CATEGORY

[C#] 0x889800F8

[Visual Basic .NET] &H889800F8

This API cannot be called for a root category.
E_CAT_CATEGORY_DOESNT_EXIST

[C#] 0x8898001C

[Visual Basic .NET] &H8898001C

The category you specified doesn't exist.

Remarks

[Visual Basic .NET] The GetCategoryProperties property contains valid data only if the property is accessed successfully.

The returned Recordset contains all the common fields in the CatalogProduct Recordset. It also contains all the fields that are in the product definitions for the category. The ProductID field (the unique product identifier) is returned even if it is not part of a product definition.

The returned Recordset is updateable, but disconnected. If this category has been deleted from the database, this property throws a COMException. For categories created in virtual catalogs, the category name returned in the Recordset will not contain the appended catalog name.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: cataloglib (in cataloglib.dll)

See Also

Category Class

Category3.SetCategoryProperties

Copyright © 2005 Microsoft Corporation.
All rights reserved.