Share via


SimpleList.Add Method (BCL)

Use this method to add the specified item to the SimpleList object.

Definition

[Visual Basic .NET]

Public Sub Add(ByRefpVar As Object)

[C#]

public void Add(
  ref object pVar);

Parameters

[Visual Basic .NET]

  • pVar
    A reference to the Object to add to the SimpleList object.

[C#]

  • pVar
    A reference to the object to add to the SimpleList object.

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]

Example

' The following example adds the string "Hello World" to the oSimpleList 
' object instance
' oSimpleList is a Commerce SimpleList object
oSimpleList.Add("Hello World")

Requirements

Namespace: Microsoft.CommerceServer.Runtime

Platforms: Windows 2000, Windows Server 2003

Assembly: mscscorelib (in mscscorelib.dll)

SimpleList Class

SimpleList.Delete

Copyright © 2005 Microsoft Corporation.
All rights reserved.