IProduct3::get_GetProductProperties Property [C++]

The GetProductProperties property is a read-only recordset that contains the properties of this Product object.

Definition

[C++]

HRESULT IProduct3::get_GetProductProperties(_Recordset**GetProductProperties);

[Visual Basic]

Property GetProductProperties As Recordset

Parameters

  • GetProductProperties[C++]
    [out, retval] The address of a pointer to a _Recordset object used to return the properties of this product.

[Visual Basic] None.

[C++]

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

Error Values

[C++] This method returns S_OK (0x00000000) to indicate success and either standard or custom COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

[Visual Basic] This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this property can return.

Constant Value Description
E_CAT_INVALID_RS_POINTER

[C++] 0x889800B7

[Visual Basic] &H889800B7

The recordset pointer that you specified is invalid
E_CAT_PRODUCT_DOESNT_EXIST

[C++] 0x8898001E

[Visual Basic] &H8898001E

The product you specified doesn't exist.

[C++] Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

[C++] The GetProductProperties parameter contains valid data only if the property was accessed successfully.

[Visual Basic] The GetProductProperties property contains valid data only if it was accessed successfully.

[C++] The returned single-row recordset contains all the fields defined for the product definition, as well as all the common fields in the CatalogProduct Recordset. The recordset also contains the ProductID property of the catalog if the ProductID property is not a part of the product definition.

[Visual Basic] The returned single-row recordset contains all the fields defined for the product definition, as well as all the common fields in the CatalogProduct Recordset.

The recordset returned is updateable, but disconnected. To modify the product properties, pass this recordset to the SetProductProperties method.

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

See Also

[C++]Product Object

[Visual Basic]Product Object

[C++]IProduct3::SetProductProperties

[Visual Basic]Product.SetProductProperties

Copyright © 2005 Microsoft Corporation.
All rights reserved.