ScriptResourceAttribute Constructor (String, String, String)
.NET Framework (current version)
Initializes a new instance of the ScriptResourceAttribute class.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Public Sub New ( scriptName As String, stringResourceName As String, stringResourceClientTypeName As String )
Parameters
- scriptName
-
Type:
System.String
The name of the script library.
- stringResourceName
-
Type:
System.String
The name of the resource file for the script library.
- stringResourceClientTypeName
-
Type:
System.String
The name of the type to create for the values in the resource file.
| Exception | Condition |
|---|---|
| ArgumentException | scriptName, scriptResourceName, or typeName is null or an empty string (""). |
The ScriptResourceAttribute method is typically called by using the ScriptResourceAttribute attribute as an assembly attribute in the application's AssemblyInfo file.
.NET Framework
Available since 3.5
Available since 3.5
Show: