GetThumbnail Method
Gets a thumbnail image.
Syntax
[VB.NET] Public Sub GetThumbnail()
[C#] public void GetThumbnail();
Remarks
This method retrieves a thumbnail image for the resource specified by ResourcePath. This is only applicable to images (.jpg, .jpeg, .png, .tiff, .tif, .gif and .bmp). Before calling this method ThumbnailFormat and ThumbnailSize may be set to specify the format and size of the thumbnail. If the original image is over 20 MB in size no thumbnail will be generated.
Example:
dropbox.ResourcePath = "/My Photos/tree.jpg"; dropbox.LocalFile = "../../tree_thumb.jpg"; dropbox.ThumbnailSize = DropboxThumbnailSizes.dts128x128; dropbox.GetThumbnail();NOTE: This method has a corresponding asynchronous version (GetThumbnailAsync) for use in the WinRT environment.