ScriptReference Constructors

Definition

Initializes a new instance of the ScriptReference class.

Overloads

ScriptReference()

Initializes a new instance of the ScriptReference class.

ScriptReference(String)

Initializes a new instance of the ScriptReference class by using a specified path.

ScriptReference(String, String)

Initializes a new instance of the ScriptReference class by using a specified name and assembly.

ScriptReference()

Initializes a new instance of the ScriptReference class.

C#
public ScriptReference();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 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

ScriptReference(String)

Initializes a new instance of the ScriptReference class by using a specified path.

C#
public ScriptReference(string path);

Parameters

path
String

The path of the client script file relative to the Web page.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 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

ScriptReference(String, String)

Initializes a new instance of the ScriptReference class by using a specified name and assembly.

C#
public ScriptReference(string name, string assembly);

Parameters

name
String

The name of the script file that is embedded in the assembly.

assembly
String

The name of the assembly that contains the client script file as an embedded resource.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 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