3.6.4.8 ICategory::Type (Opnum 15)

The ICategory::Type (opnum 15) method retrieves the type of the update category.

 HRESULT Type(
   [out, retval] BSTR* retval
 );

retval: A string containing the type of this category. The string MUST be set to one of the following values:

  • "Company", if this category refers to the company or organization that has public ownership and support accountability for the updates belonging to the category.

  • "ProductFamily", if this category refers to a related set of products.

  • "Product", if this category refers to a single product.

  • "UpdateClassification", for all other cases.

Return Values: The method MUST return information in an HRESULT data structure. The severity bit in the structure identifies the following conditions:

  • If the severity bit is set to 0, the method completed successfully.

  • If the severity bit is set to 1, the method failed and encountered a fatal error.

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

This method SHOULD return the value of the Type ADM element.