IMessengerGroups::Remove Method

Deprecated. Removes a MessengerGroup object from a collection.

Syntax

HRESULT Remove(      
    IDispatch *pMGroup
);

Parameters

  • pMGroup
    [in] Pointer to the IDispatch World Wide Web link interface on a MessengerGroup object to be removed from the collection.

Return Value

Returns one of the following values.

S_OK Success
E_FAIL Object pointed to by pGroup is not in the collection (as determined locally by the client).
E_POINTER pGroup is a NULL pointer.
E_NOTIMPL Cannot be accessed through scripting.
MSGR_E_CANNOT_DELETE The group "Other Contacts" is read-only and cannot be deleted.
MSGR_E_CONNECT The client was not logged on.

Remarks

Note  This method is not available for scripting languages.

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

See Also

IMessengerGroups