ScriptExtensions.Script Method (HtmlHelper, String, String)

Generates a script file.

Namespace:  Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

public static MvcHtmlString Script(
	this HtmlHelper helper,
	string releaseFile,
	string debugFile
)

Parameters

helper
Type: System.Web.Mvc.HtmlHelper
The HTML helper.
releaseFile
Type: System.String
The file to release.
debugFile
Type: System.String
The file to debug.

Return Value

Type: System.Web.Mvc.MvcHtmlString
A MvcHtmlString that represents the script file.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).aspx.
Show: