ModulesServiceGetResourcePath Method

Spotfire 14.3 API Reference
Gets the absolute path to the file associated with the specified public resource name, and the calling threads CurrentUICulture if it matches, or null.

Namespace:  Spotfire.Dxp.Framework.ApplicationModel
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public string GetResourcePath(
	string resourceName
)

Parameters

resourceName
Type: SystemString
The resource name for which to retrieve the path.

Return Value

Type: String
An absolute path or null, if there is no module that has a public resource with the specified resourceName.
Remarks

A public resource is a file that is packaged and deployed as part of a package and explicitly given a public resource name and an optional culture with a publicResource element in the resources section of the module.xml file of the package.

Packages are built by the Package Builder application in the SDK, which also allows files included in the package to be marked as public resources.

If a resource with the specified name and the calling threads CurrentUICulture is defined, the path to this resource will be returned. Otherwise, if a resource with the specified name and no culture is defined, the path to this resource will be returned. Otherwise, null is returned.

Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference