OneDrive/Extensions/ItemExtensionMethods.cs
/// <summary>
/// Returns a paged children collection for the item.
/// </summary>
/// <param name="item"></param>
/// <param name="connection"></param>
/// <param name="options"></param>
/// <returns></returns>
Returns a paged children collection for the item.
Returns a paged children collection for the item .
public static async Task<ODItemCollection> PagedChildrenCollectionAsync(this ODItem item, ODConnection connection, ChildrenRetrievalOptions options)
        {
            if (item.Children == null)
            {
                var firstPage = await connection.GetChildrenOfItemAsync(item.ItemReference(), options);
                item.Children = firstPage.Collection;
                item.ChildrenNextLinkAnnotation = firstPage.NextLink;
            }
            return new ODItemCollection { Collection = item.Children, NextLink = item.ChildrenNextLinkAnnotation };
        }
public static async Task < ODItemCollection > PagedChildrenCollectionAsync ( this ODItem item , ODConnection connection , ChildrenRetrievalOptions options ) { if ( item . Children == null ) { var firstPage = await connection . GetChildrenOfItemAsync ( item . ItemReference ( ) , options ) ; item . Children = firstPage . Collection ; item . ChildrenNextLinkAnnotation = firstPage . NextLink ; } return new ODItemCollection { Collection = item . Children , NextLink = item . ChildrenNextLinkAnnotation } ; }
Returns a paged children collection for the item.
Returns a paged children collection for the item .
None
ODItem
this
connection
ODConnection
None
options
ChildrenRetrievalOptions
None
item
None