Share via


Themes.GetResourcePath Method (String, String)

Gets the virtual path of the specified file in a subfolder of the theme folder.

Namespace:  Microsoft.Web.Helpers
Assembly:  Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)

Syntax

'Declaration
Public Shared Function GetResourcePath ( _
    folder As String, _
    fileName As String _
) As String
'Usage
Dim folder As String
Dim fileName As String
Dim returnValue As String

returnValue = Themes.GetResourcePath(folder, _
    fileName)
public static string GetResourcePath(
    string folder,
    string fileName
)
public:
static String^ GetResourcePath(
    String^ folder, 
    String^ fileName
)
public static function GetResourcePath(
    folder : String, 
    fileName : String
) : String

Parameters

  • folder
    Type: System.String
    The name of the subfolder in the theme folder.

Return Value

Type: System.String
The virtual path of the specified file.

Permissions

  • Medium trust for the immediate caller. This member can be used by partially trusted code.

See Also

Reference

Themes Class

GetResourcePath Overload

Microsoft.Web.Helpers Namespace