OneDrive/ODConnection.public.cs
/// <summary>
/// Retrieve an ODItem for an item with a particular item-id
/// </summary>
/// <param name="itemReference"></param>
/// <param name="itemRetrievalOptions"></param>
/// <returns></returns>
Retrieve an ODItem for an item with a particular item-id
Retrieve an ODItem for an item with a particular item - id
public async Task<ODItem> GetItemAsync(ODItemReference itemReference, ItemRetrievalOptions itemRetrievalOptions)
        {
            if (!itemReference.IsValid())
                throw new ArgumentException("ItemReference was invalid. Requires either an ID or Path");
            var queryParams = ODataOptionsToQueryString(itemRetrievalOptions);
            var serviceUri = UriForItemReference(itemReference, null, queryParams);
            return await DataModelForRequest<ODItem>(serviceUri, ApiConstants.HttpGet);
        }
public async Task < ODItem > GetItemAsync ( ODItemReference itemReference , ItemRetrievalOptions itemRetrievalOptions ) { if ( ! itemReference . IsValid ( ) ) throw new ArgumentException ( " " ) ; var queryParams = ODataOptionsToQueryString ( itemRetrievalOptions ) ; var serviceUri = UriForItemReference ( itemReference , null , queryParams ) ; return await DataModelForRequest < ODItem > ( serviceUri , ApiConstants . HttpGet ) ; }
Retrieve an ODItem for an item with a particular item-id
Retrieve an ODItem for an item with a particular item - id
None
itemReference
ODItemReference
None
itemRetrievalOptions
ItemRetrievalOptions
None