Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ScriptResourceAttribute Constructor (String^, String^, String^)

 

Initializes a new instance of the ScriptResourceAttribute class.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
ScriptResourceAttribute(
	String^ scriptName,
	String^ stringResourceName,
	String^ stringResourceClientTypeName
)

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
Return to top
Show:
© 2017 Microsoft