Syntax
CSharp
public ScriptResourceAttribute (
string scriptName,
string scriptResourceName,
string typeName
)
VisualBasic
Public Sub New ( _
scriptName As String, _
scriptResourceName As String, _
typeName As String _
)
ManagedCPlusPlus
public:
ScriptResourceAttribute (
String^ scriptName,
String^ scriptResourceName,
String^ typeName
)
JSharp
public ScriptResourceAttribute (
String scriptName,
String scriptResourceName,
String typeName
)
Parameters
- scriptName (String)
The name of the script library.
- scriptResourceName (String)
The name of the resource file for the script library.
- typeName (String)
The name of the type to create for the values in the resource file.
Remarks
The ScriptResourceAttributeNew(String, String, String) method is typically called by using the ScriptResourceAttribute attribute as an assembly attribute in the application's AssemblyInfo file.
Exceptions
| Exception | Condition |
|---|
| ArgumentException | scriptName, scriptResourceName, or typeName is null or an empty string (""). |
Assembly: System.Web.Extensions (Module: System.Web.Extensions)