IFsrmCollection::Item property
Retrieves the requested item from the collection.
This property is read-only.
Syntax
HRESULT get_Item( [in] long index, [out] VARIANT *item );
Property value
The item. The VARIANT pointed to by this parameter must have been initialized using VariantInit.
Error codes
The method returns the following return values.
| Name | Meaning |
|---|---|
|
Success. |
|
The item parameter is NULL. |
Remarks
If the item is an interface, 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.
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.
Examples
For examples, see Updating a File Screen and Classifying Files.
Requirements
|
Minimum supported client | None supported |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
DLL |
|
|
IID | IID_IFsrmCollection is defined as:
|
See also
Send comments about this topic to Microsoft
Build date: 12/6/2012