Skip To Content ArcGIS for Developers Sign In Dashboard

Obsolete Members for PortalItemCommentListModel

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

Methods

  • void append(portalItemComment) (obsolete)
  • void clear() (obsolete)
  • void insert(index, PortalItemComment portalItemComment) (obsolete)
  • void move(from, int to) (obsolete)
  • void remove(index, int count = 1) (obsolete)

Method Documentation

void append(portalItemComment)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Appends the 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 clear()

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 insert(index, PortalItemComment portalItemComment)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Inserts the PortalItemComment portalItemComment at the specified index in 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 move(from, int to)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 remove(index, int count = 1)

This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Removes one or more objects starting at the specified index.

  • index - The index of first object to remove.
  • count - The number of objects to remove. This parameter defaults to 1.

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?