Click or drag to resize

PortalItem Methods

The PortalItem type exposes the following members.

Methods
  NameDescription
Public methodAddCommentAsync(String)
Adds a comment to an item. Available only to authenticated users who have access to the item.
Public methodAddCommentAsync(String, CancellationToken)
Adds a comment to an item. Available only to authenticated users who have access to the item.
Public methodAddRatingAsync(Double)
Adds a rating to an item that you have access to. Only one rating can be given to an item per user. If this call is made on an already rated item, the new rating will overwrite the current one. A user cannot rate their own item. Available only to authenticated users.
Public methodAddRatingAsync(Double, CancellationToken)
Adds a rating to an item that you have access to. Only one rating can be given to an item per user. If this call is made on an already rated item, the new rating will overwrite the current one. A user cannot rate their own item. Available only to authenticated users.
Public methodStatic memberCode exampleCreateAsync(Uri, Credential)
Creates a portal item object from a portal item Url.
Public methodStatic memberCode exampleCreateAsync(ArcGISPortal, String)
Initializes a new instance of the PortalItem class from the specified item ID.
Public methodStatic memberCode exampleCreateAsync(ArcGISPortal, String, CancellationToken)
Initializes a new instance of the PortalItem class from the specified item ID.
Public methodGetCommentsAsync
Gets the comments for the item that you have access to. Available only to authenticated users.
Public methodGetCommentsAsync(CancellationToken)
Gets the comments for the item that you have access to. Available only to authenticated users.
Public methodGetDataAsync
Gets the item data. The data component of an item (the "item file") is used to stream the actual data represented by the item to the client. This resource is available only for the file and text item types.
(Overrides ItemGetDataAsync.)
Public methodCode exampleGetDataAsync(CancellationToken, String)
Gets the item data. The data component of an item (the "item file") is used to stream the actual data represented by the item to the client. This resource is available only for the file and text item types.
Public methodGetGroupsAsync
Gets the groups that this item belongs to. Only those groups that are visible to the current portal user will be returned.
Public methodGetGroupsAsync(CancellationToken)
Gets the groups the item is a part of. Only shows the groups which the calling user can access.
Public methodGetThumbnailDataAsync
Get the thumbnail image data for this portal item.
Public methodSetThumbnail
Sets the thumbnail for this portal item from the given data stream.
(Overrides ItemSetThumbnail(Stream).)
Public methodSetThumbnailWithImage
Sets the thumbnail for this portal item from the given data stream.
Public methodShareWithAsync(Boolean, Boolean)
Shares the portal item with everyone or just with the user's organization. If both 'everyone' and 'organization' arguments are true, the item will be shared with everyone (Public). If both 'everyone' and 'organization' arguments are false, the item will be made private, unless the item has been shared with one or more groups. In that case, the items Access property will be set to Shared. The groups an item has been shared with are not affected by this method. This Method is available only to authenticated users.
Public methodShareWithAsync(Boolean, Boolean, CancellationToken)
Shares the portal item with everyone or just with the user's organization. If both 'everyone' and 'organization' arguments are true, the item will be shared with everyone (Public). If both 'everyone' and 'organization' arguments are false, the item will be made private, unless the item has been shared with one or more groups. In that case, the items Access property will be set to Shared. The groups an item has been shared with are not affected by this method. This Method is available only to authenticated users.
Public methodShareWithGroupsAsync(IEnumerablePortalGroup)
Shares this PortalItem with the specified list of PortalGroup. This Method is available only to authenticated users.
Public methodShareWithGroupsAsync(IEnumerablePortalGroup, CancellationToken)
Shares this PortalItem with the specified list of PortalGroup. This Method is available only to authenticated users.
Public methodToJson
Serializes the item to a JSON string.
Public methodUnshareAsync
Unshare (make private) this portal item.
Public methodUnshareAsync(CancellationToken)
Unshare (make private) this portal item.
Public methodUnshareGroupsAsync(IEnumerablePortalGroup)
Stops sharing this PortalItem with the specified list of PortalGroup. This Method is available only to authenticated users.
Public methodUnshareGroupsAsync(IEnumerablePortalGroup, CancellationToken)
Stops sharing this PortalItem with the specified list of PortalGroup. This Method is available only to authenticated users.
Public methodUpdateDataAsync(Stream)
Updates the file data for this portal item on the portal asynchronously. This call is available to the item owner and the administrator of the organization.
Public methodUpdateDataAsync(String)
Updates the JSON data for this portal item on the portal asynchronously. This call is available to the item owner and the administrator of the organization.
Public methodUpdateDataAsync(Stream, CancellationToken)
Updates the file data for this portal item on the portal asynchronously. This call is available to the item owner and the administrator of the organization.
Public methodUpdateDataAsync(String, CancellationToken)
Updates the JSON data for this portal item on the portal asynchronously. This call is available to the item owner and the administrator of the organization.
Public methodUpdateItemPropertiesAsync
Executes an asynchronous operation to update any item properties that have been changed.
(Inherited from Item.)
Public methodUpdateItemPropertiesAsync(CancellationToken)
Executes an asynchronous operation to update any item properties that have been changed.
(Inherited from Item.)
Top
See Also