GetUri Method

Glimpse API

IStaticClientScript GetUri Method Glimpse API Documentation
Gets the Uri to set as the value for the src attribute.

Namespace: Glimpse.Core.Extensibility
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

string GetUri(
	string version
)
string GetUri(
	string version
)

Parameters

version
Type: OnlineSystem String
A unique string that should be combined with the Uri to allow for Http cache invalidation.
Examples

In this example, the version parameter is appended to a query string argument.
public string GetUri(string version)
{
    return "//localhost/scripts/myScript.js?v=" + version;
}
public string GetUri(string version)
{
    return "//localhost/scripts/myScript.js?v=" + version;
}

Return Value

A string Uri pointing to a JavaScript asset.
Remarks

The returned Uri should only point to JavaScript files since the <script> tag will be rendered with a type='text/javascript' attribute.
See Also