ScriptResourceMapping.GetDefinition Method

Definition

Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object.

Overloads

GetDefinition(String)

Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object based on the name parameter.

GetDefinition(ScriptReference)

Returns a ScriptResourceDefinition object from the ScriptResourceMapping object.

GetDefinition(String, Assembly)

Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object.

GetDefinition(String)

Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object based on the name parameter.

C#
public System.Web.UI.ScriptResourceDefinition GetDefinition (string name);

Parameters

name
String

The name of the script resource.

Returns

A ScriptResourceDefinition object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetDefinition(ScriptReference)

Returns a ScriptResourceDefinition object from the ScriptResourceMapping object.

C#
public System.Web.UI.ScriptResourceDefinition GetDefinition (System.Web.UI.ScriptReference scriptReference);

Parameters

scriptReference
ScriptReference

A ScriptReference object.

Returns

A ScriptResourceDefinition object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetDefinition(String, Assembly)

Returns the specified ScriptResourceDefinition object from the ScriptResourceMapping object.

C#
public System.Web.UI.ScriptResourceDefinition GetDefinition (string name, System.Reflection.Assembly assembly);

Parameters

name
String

The name of the script resource.

assembly
Assembly

An Assembly object that contains the script resource.

Returns

A ScriptResourceDefinition object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1