Share via


CatalogSets2.GetCatalogSetIDForUser Method (PIA)

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

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Function GetCatalogSetIDForUser(
objProfileService As Object,
  user_id As String,
  defaultCatalogSetID As String) As Object

[C#]

using Microsoft.CommerceServer.Interop.Catalog;
…
public object GetCatalogSetIDForUser(object objProfileService,
  stringuser_id,
  stringdefaultCatalogSetID);

Parameters

[Visual Basic .NET]

  • objProfileService
    A ProfileService object.
  • user_id
    A String that contains the user ID.
  • defaultCatalogSetID
    A String that contains the default catalog set ID.

[C#]

  • 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

[Visual Basic .NET] If this method completes successfully, it returns an Object that contains the CatalogSetID.

[C#] This method returns an object containing the catalog set ID.

Exceptions

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

Remarks

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.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_ctlgsets (in cs_ctlgsets.dll)

See Also

CatalogSets2 Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.