Edit

Share via


ScriptResourceAttribute Constructors

Definition

Initializes a new instance of the ScriptResourceAttribute class.

Overloads

ScriptResourceAttribute(String)

Initializes a new instance of the ScriptResourceAttribute class.

ScriptResourceAttribute(String, String, String)

Initializes a new instance of the ScriptResourceAttribute class.

ScriptResourceAttribute(String)

Initializes a new instance of the ScriptResourceAttribute class.

C#
public ScriptResourceAttribute(string scriptName);

Parameters

scriptName
String

The name of the script library.

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

ScriptResourceAttribute(String, String, String)

Initializes a new instance of the ScriptResourceAttribute class.

C#
public ScriptResourceAttribute(string scriptName, string scriptResourceName, string typeName);
C#
public ScriptResourceAttribute(string scriptName, string stringResourceName, string stringResourceClientTypeName);

Parameters

scriptName
String

The name of the script library.

scriptResourceNamestringResourceName
String

The name of the resource file for the script library.

typeNamestringResourceClientTypeName
String

The name of the type to create for the values in the resource file.

Exceptions

scriptName, scriptResourceName, or typeName is null or an empty string ("").

Remarks

The ScriptResourceAttribute method is typically called by using the ScriptResourceAttribute attribute as an assembly attribute in the application's AssemblyInfo file.

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