Method GetContentAsync
GetContentAsync()
Gets the folders and items that are stored at the user's root folder.
Declaration
public Task<PortalUserContent> GetContentAsync()
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous get items operation.
The value of the task result contains a Portal |
Remarks
The purpose of this Method is to obtain content (items and folders) that belong to a particular
authenticated user in a portal. This method performs an asynchronous request to obtain a
Portal
To retrieve portal items from folders other than the root use
Get
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 |
GetContentAsync(CancellationToken)
Gets the folders and items that are stored at the user's root folder.
Declaration
public async Task<PortalUserContent> GetContentAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | A System. |
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous get items operation.
The value of the task result contains a Portal |
Remarks
The purpose of this Method is to obtain content (items and folders) that belong to a particular
authenticated user in a portal. This method performs an asynchronous request to obtain a
Portal
To retrieve portal items from folders other than the root use
Get
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 |
GetContentAsync(String)
Gets portal items stored in the specified folder belonging to this user.
Declaration
public Task<IEnumerable<PortalItem>> GetContentAsync(string folderId)
Parameters
Type | Name | Description |
---|---|---|
System. |
folderId | The Id of the folder for which to get content. |
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous get items operation.
The value of the task result contains a collection of Portal |
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 |
GetContentAsync(String, CancellationToken)
Gets portal items stored in the specified folder belonging to this user.
Declaration
public async Task<IEnumerable<PortalItem>> GetContentAsync(string folderId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
folderId | The Id of the folder for which to get content. |
System. |
cancellationToken | A System. |
Returns
Type | Description |
---|---|
System. |
The task object representing the asynchronous get items operation.
The value of the task result contains a collection of Portal |
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 |