ISdoCollection::Add method (sdoias.h)

The Add method adds an item to the Server Data Objects (SDO) collection.

Syntax

HRESULT Add(
  [in]      BSTR      bstrName,
  [in, out] IDispatch **ppItem
);

Parameters

[in] bstrName

Specifies the name of the SDO Object. This parameter may be NULL.

[in, out] ppItem

Pointer to an IDispatch interface pointer for the Item to add. This parameter must not be NULL.

Return value

If the method succeeds the return value is S_OK.

If the method fails, the return value is one of the following error codes.

Remarks

If you specify the name of the object to add, ensure that the name is unique by calling ISdoCollection::IsNameUnique.

If the bstrName parameter is not specified, ISdoCollection::Add obtains it from the object specified by the ppItem parameter.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header sdoias.h
DLL Iassdo.dll

See also

Adding an Object to a Collection

BSTR

IASCOMMONPROPERTIES

ISdoCollection

ISdoCollection::IsNameUnique