Method AddPortalItemAsync
AddPortalItemAsync(PortalItem)
Adds an item without content asynchronously. This operation is available only to authenticated users.
Declaration
public Task<PortalItem> AddPortalItemAsync(PortalItem portalItem)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalItem | portalItem | The portal item to add. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<PortalItem> | The task object representing the asynchronous add item operation. The value of the task result is a PortalItem object. |
Remarks
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.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | portalItem |
| System.Exception | Operation is available only to authenticated users. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
AddPortalItemAsync(PortalItem, PortalItemContentParameters)
Adds an item with content asynchronously. This operation is available only to authenticated users.
Declaration
public Task<PortalItem> AddPortalItemAsync(PortalItem portalItem, PortalItemContentParameters portalItemContent)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalItem | portalItem | The portal item to add. |
| PortalItemContentParameters | portalItemContent | Content of the portal item. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<PortalItem> | The task object representing the asynchronous add item operation. The value of the task result is a PortalItem object. |
Remarks
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.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | portalItem |
| System.Exception | Operation is available only to authenticated users. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
AddPortalItemAsync(PortalItem, PortalItemContentParameters, PortalFolder)
Adds an item with or without content asynchronously. This operation is available only to authenticated users.
Declaration
public Task<PortalItem> AddPortalItemAsync(PortalItem portalItem, PortalItemContentParameters portalItemContent, PortalFolder folder)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalItem | portalItem | The portal item to add. |
| PortalItemContentParameters | portalItemContent | Content of the portal item (may be |
| PortalFolder | folder | The user folder (root folder if |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<PortalItem> | The task object representing the asynchronous add item operation. The value of the task result is a PortalItem object. |
Remarks
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.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | portalItem |
| System.Exception | Operation is available only to authenticated users. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
AddPortalItemAsync(PortalItem, PortalItemContentParameters, PortalFolder, CancellationToken)
Adds an item with or without content asynchronously. This operation is available only to authenticated users.
Declaration
public Task<PortalItem> AddPortalItemAsync(PortalItem portalItem, PortalItemContentParameters portalItemContent, PortalFolder folder, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalItem | portalItem | The portal item to add. |
| PortalItemContentParameters | portalItemContent | Content of the portal item (may be |
| PortalFolder | folder | The user folder (root folder if |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken with which to cancel the operation if required. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<PortalItem> | The task object representing the asynchronous add item operation. The value of the task result is a PortalItem object. |
Remarks
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.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | portalItem |
| System.Exception | Operation is available only to authenticated users. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.2 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.14 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |