IMobileMediaService.GetThumbnail Method
[IMobileMediaService.GetThumbnail is no longer available for use as of Windows Server 2012 Essentials.] Gets a thumbnail for the specified image.
Namespace: Microsoft.WindowsServerSolutions.Mobile.Web.Media
Assembly: MobileWeb (in MobileWeb.dll)
Usage
'Usage
Dim instance As IMobileMediaService
Dim mediaTypeData As String
Dim id As String
Dim widthData As String
Dim heightData As String
Dim returnValue As Stream
returnValue = instance.GetThumbnail(mediaTypeData, id, widthData, heightData)
Syntax
'Declaration
<OperationContractAttribute> _
Function GetThumbnail ( _
mediaTypeData As String, _
id As String, _
widthData As String, _
heightData As String _
) As Stream
[OperationContractAttribute]
Stream GetThumbnail (
string mediaTypeData,
string id,
string widthData,
string heightData
)
[OperationContractAttribute]
Stream^ GetThumbnail (
String^ mediaTypeData,
String^ id,
String^ widthData,
String^ heightData
)
/** @attribute OperationContractAttribute() */
Stream GetThumbnail (
String mediaTypeData,
String id,
String widthData,
String heightData
)
OperationContractAttribute
function GetThumbnail (
mediaTypeData : String,
id : String,
widthData : String,
heightData : String
) : Stream
Parameters
mediaTypeData
Media type. This can be one of the following values.Value
Description
Photo
A photo is being specified from which to generate the thumbnail.
Music
Album art is being specified from which to generate the thumbnail.
- id
ID of the item for which to get the thumbnail.
- widthData
Suggested width of the thumbnail.
- heightData
Suggested height of the thumbnail.
Return Value
Returns Stream.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008 R2 x64, Windows 7 x64, Windows Server 2008 x64, Windows Vista x64
See Also
Reference
IMobileMediaService Interface
IMobileMediaService Members
Microsoft.WindowsServerSolutions.Mobile.Web.Media Namespace
Copyright © 2012 by Microsoft Corporation. All rights reserved.