Export (0) Print
Expand All

IFsrmMutableCollection::Add method

Adds an object to the collection.

Syntax


HRESULT Add(
  [in]  VARIANT item
);

Parameters

item [in]

A VARIANT that contains the IDispatch interface of the object to add to the collection. Set the variant type to VT_DISPATCH and the pdispVal member to the IDispatch interface of the object.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The variant is not of the same type as the previously added variants.

FSRM_E_ALREADY_EXISTS

The item is already in the collection.

 

Remarks

All items in the collection must be of the same type.

Examples

For an example, see Using Templates to Define File Screens.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

Fsrm.h (include FsrmQuota.h, FsrmReports.h, or FsrmScreen.h)

DLL

SrmSvc.dll

IID

IID_IFsrmMutableCollection is defined as:
  • 1bb617b8-3886-49dc-af82-a6c90fa35dda
  • 1bb617b8-3886-49dc-af82-a6c90fa35dda

See also

IFsrmMutableCollection

 

 

Show:
© 2014 Microsoft