Compartilhar via


Utility.GetImage Method (String, ImageResources, Boolean)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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)

Syntax

public static Image GetImage(
    string imagePath,
    ImageResources crmWebResource,
    bool useCache
)
Public Shared Function GetImage (
    imagePath As String,
    crmWebResource As ImageResources,
    useCache As Boolean
) As Image

Parameters

  • imagePath
    Type: System.String

    Specifies the URL or the name of the web resource.

  • useCache
    Type: System.Boolean

    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

Type: System.Windows.Controls.Image

Cached version of the image if it exists.

See Also

GetImage Overload
Utility Class
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright