Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

ScriptResourceAttribute Constructor (scriptName, scriptResourceName, typeName)

Initializes a new instance of the ScriptResourceAttribute class.

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

ExceptionCondition
ArgumentException

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

Assembly: System.Web.Extensions (Module: System.Web.Extensions)