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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |