OneDrive/ODConnection.public.cs
/// <summary>
/// Return a collection of children of an item referenced by item-id
/// </summary>
/// <param name="itemReference"></param>
/// <param name="childrenRetrievalOptions"></param>
/// <returns></returns>
Return a collection of children of an item referenced by item-id
Return a collection of children of an item referenced by item - id
public async Task<ODItemCollection> GetChildrenOfItemAsync(ODItemReference itemReference, ChildrenRetrievalOptions childrenRetrievalOptions)
        {
            if (!itemReference.IsValid())
                throw new ArgumentException("ItemReference was invalid. Requires either an ID or Path");
            var queryParams = ODataOptionsToQueryString(childrenRetrievalOptions);
            Uri serviceUri = UriForItemReference(itemReference, ApiConstants.ChildrenRelationshipName, queryParams);
            return await DataModelForRequest<ODItemCollection>(serviceUri, ApiConstants.HttpGet);
        }
public async Task < ODItemCollection > GetChildrenOfItemAsync ( ODItemReference itemReference , ChildrenRetrievalOptions childrenRetrievalOptions ) { if ( ! itemReference . IsValid ( ) ) throw new ArgumentException ( " " ) ; var queryParams = ODataOptionsToQueryString ( childrenRetrievalOptions ) ; Uri serviceUri = UriForItemReference ( itemReference , ApiConstants . ChildrenRelationshipName , queryParams ) ; return await DataModelForRequest < ODItemCollection > ( serviceUri , ApiConstants . HttpGet ) ; }
Return a collection of children of an item referenced by item-id
Return a collection of children of an item referenced by item - id
None
itemReference
ODItemReference
None
childrenRetrievalOptions
ChildrenRetrievalOptions
None