Share via


CatalogSets.GetCatalogSetIDForUser

Ee796594.c++_on(en-US,CS.10).gifEe796594.vb_off(en-US,CS.10).gif

Use this method to return the CatalogSetID for a specific user.

Definition

Function GetCatalogSetIDForUser(objProfileService As IDispatch,user_id As String,defaultCatalogSetID As String) As Variant

Parameters

objProfileService

A ProfileService object.

user_id

A String that contains the user ID.

defaultCatalogSetID

A String that contains the default catalog set ID.

Return Values

If this method completes successfully, it returns a Variant that contains the CatalogSetID.

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 Variant returned by this method contains valid data only if the method completes successfully.

If the user defined in the objProfileService parameter has a catalog set associated with it, this method returns that ID; if not, it returns the catalog set associated with the user organization. If this catalog set does not exist, it returns the value supplied in the defaultCatalogSetID parameter.

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

Example

strCatalogSetID = myCatalogSets.GetCatalogSetIDForUser(oProfileService, user_id, defaultCatalogSetID)

See Also

CatalogSets Object

ProfileService Object


All rights reserved.