Utility.GetImage Method (String, ImageResources)
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 returnValue As Image
returnValue = Utility.GetImage(imagePath, crmWebResource)
Syntax
'Declaration
Public Shared Function GetImage ( _
imagePath As String, _
crmWebResource As ImageResources _
) As Image
public static Image GetImage (
string imagePath,
ImageResources crmWebResource
)
public:
static Image^ GetImage (
String^ imagePath,
ImageResources^ crmWebResource
)
public static Image GetImage (
String imagePath,
ImageResources crmWebResource
)
public static function GetImage (
imagePath : String,
crmWebResource : ImageResources
) : Image
Parameters
- imagePath
Specifies the URL or the name of the web resource.
- crmWebResource
Specifies the Web Resource utility object
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.