Skip To Content ArcGIS for Developers Sign In Dashboard

Obsolete Members for PortalItemCommentListModel

The following members of class PortalItemCommentListModel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) void append(PortalItemComment *portalItemComment)
(obsolete) void clear()
(obsolete) void insert(int index, PortalItemComment *portalItemComment)
(obsolete) void move(int from, int to)
(obsolete) void removeAt(int index)
(obsolete) void removeOne(PortalItemComment *portalItemComment)

Member Function Documentation

void PortalItemCommentListModel::append(PortalItemComment *portalItemComment)

Appends PortalItemComment portalItemComment to the list model.

This method only affects the local instance of this list model class. To add a comment to the online portal item, use PortalItem::addComment instead.

void PortalItemCommentListModel::clear()

Removes all comments from the list model.

This method only affects the local instance of this list model class. This method will not remove a comment from the online portal item.

void PortalItemCommentListModel::insert(int index, PortalItemComment *portalItemComment)

Inserts PortalItemComment portalItemComment at a specified index in the list model.

This method will append to the list model if the index is greater than the current size of the list.

This method only affects the local instance of this list model class. To add a comment to the online portal item, use PortalItem::addComment instead.

void PortalItemCommentListModel::move(int from, int to)

Moves one PortalItemComment from an index in the list model to a different index.

This method only affects the local instance of this list model class. This method will not move a comment on the online portal item.

void PortalItemCommentListModel::removeAt(int index)

Removes a PortalItemComment at the specified index.

This method only affects the local instance of this list model class. This method will not remove a comment from the online portal item.

void PortalItemCommentListModel::removeOne(PortalItemComment *portalItemComment)

Removes the PortalItemComment portalItemComment from the list model.

This method only affects the local instance of this list model class. This method will not remove a comment from the online portal item.


Feedback on this topic?