ScriptExtensions.Script Method (HtmlHelper, String, String)
Generates a script file.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Script ( _
helper As HtmlHelper, _
releaseFile As String, _
debugFile As String _
) As MvcHtmlString
'Usage
Dim helper As HtmlHelper
Dim releaseFile As String
Dim debugFile As String
Dim returnValue As MvcHtmlString
returnValue = helper.Script(releaseFile, _
debugFile)
public static MvcHtmlString Script(
this HtmlHelper helper,
string releaseFile,
string debugFile
)
[ExtensionAttribute]
public:
static MvcHtmlString^ Script(
HtmlHelper^ helper,
String^ releaseFile,
String^ debugFile
)
static member Script :
helper:HtmlHelper *
releaseFile:string *
debugFile:string -> MvcHtmlString
public static function Script(
helper : HtmlHelper,
releaseFile : String,
debugFile : String
) : MvcHtmlString
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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).