OneDrive/Extensions/ItemExtensionMethods.cs
/// <summary>
/// Returns an item reference instance for the item, based on the item's ID and item's parent's drive ID.
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
Returns an item reference instance for the item, based on the item's ID and item's parent's drive ID.
Returns an item reference instance for the item based on the item ' s ID and item ' s parent ' s drive ID .
public static ODItemReference ItemReference(this ODItem item)
        {
            if (item.ParentReference == null)
                return ODConnection.ItemReferenceForItemId(item.Id);
            else
                return ODConnection.ItemReferenceForItemId(item.Id, item.ParentReference.DriveId);
        }
public static ODItemReference ItemReference ( this ODItem item ) { if ( item . ParentReference == null ) return ODConnection . ItemReferenceForItemId ( item . Id ) ; else return ODConnection . ItemReferenceForItemId ( item . Id , item . ParentReference . DriveId ) ; }
Returns an item reference instance for the item, based on the item's ID and item's parent's drive ID.
Returns an item reference instance for the item based on the item ' s ID and item ' s parent ' s drive ID .
None
ODItem
this
item
None