Share via


IMessengerGroups::Item Method

Deprecated. Retrieves a specific MessengerGroup object by numeric index.

Syntax

HRESULT Item(      
    long Index,
    IDispatch **ppService
);

Parameters

  • Index
    [in] LONG that specifies the index of the desired MessengerGroup object in the collection.
  • ppService
    [out, retval] Address of a pointer to the IDispatch World Wide Web link interface on a MessengerGroup object requested with IDispatch interface on a Index. The object can now be accessed through the IMessengerGroups interface.

Return Value

Returns one of the following values.

S_OK Success
E_FAIL Invalid collection or index number provided exceeds the length of the collection.
RPC_X_NULL_REF_POINTER ppMGroup is a NULL pointer.
E_INVALIDARG Index is not a positive integer.

Remarks

Important  IMessengerGroups::Item is no longer available in Windows Vista. See Windows Messenger for more information.

Note  This method is available for scripting languages.

See Also

IMessengerGroups