The user automatically becomes the owner of the item. The item by default is flagged as private (e.g., not shared with any group). This can be changed with the share item operation.
The url used for an item must be unique within the particular user's folder.| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function AddItemTaskAsync( _ ByVal portalItem As ArcGISPortalItem, _ ByVal fileContent As ArcGISWebClient.StreamContent, _ Optional ByVal thumbnail As Stream, _ Optional ByVal folderId As String _ ) As Task(Of ArcGISPortalItem) | |
| C# | |
|---|---|
public Task<ArcGISPortalItem> AddItemTaskAsync( ArcGISPortalItem portalItem, ArcGISWebClient.StreamContent fileContent, Stream thumbnail, string folderId ) | |
Parameters
- portalItem
- The portal item to add.
- fileContent
- The file content to upload.
- thumbnail
- The thumbnail of the item.
- folderId
- The user folder ID (root folder by default)
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8