CatalogManager.GetPropertyValues

Ee798946.c++_on(en-US,CS.10).gifEe798946.vb_off(en-US,CS.10).gif

Use this method to return the list of values defined for an enumeration property.

Definition

Function GetPropertyValues(strPropertyName As String) As _Recordset

Parameters

strPropertyName

A String that contains the name of the enumeration property for which the defined values will be returned.

Return Values

If this method completes successfully, it returns a Recordset object that contains the defined values in the enumeration.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The returned recordset contains valid data only if the method completes successfully.

The returned recordset contains the following fields:

Field Data Type Description
PropertyName String
256 Characters
None
Value String
256 Characters
None

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

Set rsEnumValues = myCatalogManager.GetPropertyValues("Color")

See Also

CatalogManager Object

CatalogManager.AddPropertyValue

CatalogManager.RemovePropertyValue


All rights reserved.