ListManager.GetListId Method (PIA)
Use this method to retrieve the ID of a list based on the list name.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Function GetListId(listName As String) As Object
[C#]
using Microsoft.CommerceServer.Interop.Targeting;
…
public object GetListId(stringlistName);
Parameters
[Visual Basic .NET]
- listName
A String that contains the list name.
[C#]
- listName
A string that contains the list name.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns an Object containing the ID (a GUID) of the list.
[C#] This method returns an object used to return the ID (a GUID) of the list.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
The following table shows the custom COM errors that a COMException can wrap.
Value | Description |
---|---|
&H8C400006 | The specified list does not exist. |
&H8C400003 | Error while executing SQL/ADO operation. |
&H80040007 | The ListManager object has not been properly initialized. |
[C#]
The following table shows the custom COM errors that a COMException can wrap.
Value | Description |
---|---|
0x8C400006 | The specified list does not exist. |
0x8C400003 | Error while executing SQL/ADO operation. |
0x80040007 | The ListManager object has not been properly initialized. |
Requirements
Namespace: Microsoft.CommerceServer.Interop.Targeting
Platforms: Windows 2000, Windows Server 2003
Assembly: listmanagerlib (in listmanagerlib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.