ScriptExtensions.Script Method
Generates a script file.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
Script(HtmlHelper, String) | Generates a script file. |
![]() ![]() |
Script(HtmlHelper, String, String) | Generates a script file. |
See Also
ScriptExtensions Class
Microsoft.Web.Mvc Namespace
Return to top
ScriptExtensions.Script Method (HtmlHelper, String)
Generates a script file.
Syntax
public static MvcHtmlString Script(
this HtmlHelper helper,
string releaseFile
)
public:
[ExtensionAttribute]
static MvcHtmlString^ Script(
HtmlHelper^ helper,
String^ releaseFile
)
static member Script :
helper:HtmlHelper *
releaseFile:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function Script (
helper As HtmlHelper,
releaseFile As String
) As MvcHtmlString
Parameters
helper
Type: System.Web.Mvc.HtmlHelperThe HTML helper.
releaseFile
Type: System.StringThe file to release.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A MvcHtmlString representing the script file.
Return to top
ScriptExtensions.Script Method (HtmlHelper, String, String)
Generates a script file.
Syntax
public static MvcHtmlString Script(
this HtmlHelper helper,
string releaseFile,
string debugFile
)
public:
[ExtensionAttribute]
static MvcHtmlString^ Script(
HtmlHelper^ helper,
String^ releaseFile,
String^ debugFile
)
static member Script :
helper:HtmlHelper *
releaseFile:string *
debugFile:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function Script (
helper As HtmlHelper,
releaseFile As String,
debugFile As String
) As MvcHtmlString
Parameters
helper
Type: System.Web.Mvc.HtmlHelperThe HTML helper.
releaseFile
Type: System.StringThe file to release.
debugFile
Type: System.StringThe file to debug.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A MvcHtmlString that represents the script file.
Return to top