OneDrive/ODConnection.public.cs
/// <summary>
/// Return a collection of thumbnails available for an item referenced by item-id
/// </summary>
/// <param name="itemReference"></param>
/// <param name="thumbnailOptions"></param>
/// <returns></returns>
Return a collection of thumbnails available for an item referenced by item-id
Return a collection of thumbnails available for an item referenced by item - id
public async Task<ODThumbnailSet[]> GetThumbnailsForItemAsync(ODItemReference itemReference, ThumbnailRetrievalOptions thumbnailOptions)
        {
            if (!itemReference.IsValid())
                throw new ArgumentException("ItemReference was invalid. Requires either an ID or Path");
            var queryParams = ODataOptionsToQueryString(thumbnailOptions);
            Uri serviceUri = UriForItemReference(itemReference, ApiConstants.ThumbnailsRelationshipName, queryParams);
            var results = await DataModelForRequest<ODCollectionResponse<ODThumbnailSet>>(serviceUri, ApiConstants.HttpGet);
            if (null != results && results.Collection != null)
            {
                return results.Collection;
            }
            return null;
        }
public async Task < ODThumbnailSet [ ] > GetThumbnailsForItemAsync ( ODItemReference itemReference , ThumbnailRetrievalOptions thumbnailOptions ) { if ( ! itemReference . IsValid ( ) ) throw new ArgumentException ( " " ) ; var queryParams = ODataOptionsToQueryString ( thumbnailOptions ) ; Uri serviceUri = UriForItemReference ( itemReference , ApiConstants . ThumbnailsRelationshipName , queryParams ) ; var results = await DataModelForRequest < ODCollectionResponse < ODThumbnailSet > > ( serviceUri , ApiConstants . HttpGet ) ; if ( null != results && results . Collection != null ) { return results . Collection ; } return null ; }
Return a collection of thumbnails available for an item referenced by item-id
Return a collection of thumbnails available for an item referenced by item - id
None
itemReference
ODItemReference
None
thumbnailOptions
ThumbnailRetrievalOptions
None