IFsrmCollection::_NewEnum property

Retrieves the IUnknown pointer of a new IEnumVARIANT enumeration for the items in the collection.

This property is read-only.

Syntax


HRESULT get__NewEnum(
  [out] IUnknown **unknown
);

Property value

The IUnknown pointer of a new IEnumVARIANT enumeration for the items in the collection.

Error codes

The method returns the following return values.

S_OK

Success.

E_POINTER

The unknown parameter is NULL.

Remarks

C/C++ users use this method to enumerate items in the collection. Call the QueryInterface of the IUnknown interface to get the IEnumVARIANT interface. Use the IEnumVARIANT::Next method to enumerate the items of the collection. The items are returned as VARIANT values.

If the collection contains interfaces, the variant type is VT_DISPATCH. Call the QueryInterface method on the pdispVal member of the variant to get an interface to the specific object. For example, if the collection contains report objects, you would query the pdispVal member for the IFsrmReport interface.

If the item is an HRESULT value, the variant type is VT_I4. Use the lVal member of the variant to get the HRESULT value.

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_IFsrmCollection is defined as f76fbf3b-8ddd-4b42-b05a-cb1c3ff1fee8

See also

IFsrmCollection

 

 

Show: