Utility.GetImage Method (String, ImageResources, Boolean)
Retrieves an image from CRM resources or a URL
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Usage
'Usage
Dim imagePath As String
Dim crmWebResource As ImageResources
Dim useCache As Boolean
Dim returnValue As Image
returnValue = Utility.GetImage(imagePath, crmWebResource, useCache)
Syntax
'Declaration
Public Shared Function GetImage ( _
imagePath As String, _
crmWebResource As ImageResources, _
useCache As Boolean _
) As Image
public static Image GetImage (
string imagePath,
ImageResources crmWebResource,
bool useCache
)
public:
static Image^ GetImage (
String^ imagePath,
ImageResources^ crmWebResource,
bool useCache
)
public static Image GetImage (
String imagePath,
ImageResources crmWebResource,
boolean useCache
)
public static function GetImage (
imagePath : String,
crmWebResource : ImageResources,
useCache : boolean
) : Image
Parameters
- imagePath
Specifies the URL or the name of the web resource.
- crmWebResource
Specifies the Web Resource utility object.
- useCache
Specifies whether to use image cache or not. If true, cached version of the image will be returned. Otherwise, the image will be retrieved every time from the source.
Return Value
Cached version of the image if it exists.
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
See Also
Reference
Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.