src/Picturepark.SDK.V1/Partial/ListItemClient.cs
/// <summary>Updates a list item by providing its content.</summary>
/// <param name="listItemId">The list item ID.</param>
/// <param name="content">The content which must match the item's schema ID.</param>
/// <param name="resolveBehaviors">List of enum that control which parts of the list item are resolved and returned.</param>
/// <param name="allowMissingDependencies">Allow creating <see cref="ListItem"/>s that refer to list items or contents that don't exist in the system.</param>
/// <param name="timeout">The timeout in milliseconds to wait for completion.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The updated <see cref="ListItemDetail"/>.</returns>
Updates a list item by providing its content.
Updates a list item by providing its content .
public async Task<ListItemDetail> UpdateAsync(string listItemId, object content, IEnumerable<ListItemResolveBehavior> resolveBehaviors = null, bool allowMissingDependencies = false, TimeSpan? timeout = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var updateRequest = new ListItemUpdateRequest()
            {
                Content = content
            };
            return await UpdateAsync(listItemId, updateRequest, resolveBehaviors, allowMissingDependencies, timeout, cancellationToken).ConfigureAwait(false);
        }
public async Task < ListItemDetail > UpdateAsync ( string listItemId , object content , IEnumerable < ListItemResolveBehavior > resolveBehaviors = null , bool allowMissingDependencies = false , TimeSpan ? timeout = null , CancellationToken cancellationToken = default ( CancellationToken ) ) { var updateRequest = new ListItemUpdateRequest ( ) { Content = content } ; return await UpdateAsync ( listItemId , updateRequest , resolveBehaviors , allowMissingDependencies , timeout , cancellationToken ) . ConfigureAwait ( false ) ; }
Updates a list item by providing its content.
Updates a list item by providing its content .
The updated .
The updated .
listItemId
string
The list item ID.
The list item ID .
content
object
The content which must match the item's schema ID.
The content which must match the item ' s schema ID .
resolveBehaviors
IEnumerable<ListItemResolveBehavior>
List of enum that control which parts of the list item are resolved and returned.
List of enum that control which parts of the list item are resolved and returned .
allowMissingDependencies
bool
Allow creating s that refer to list items or contents that don't exist in the system.
Allow creating s that refer to list items or contents that don ' t exist in the system .
timeout
TimeSpan?
The timeout in milliseconds to wait for completion.
The timeout in milliseconds to wait for completion .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .