Share via


ScriptExtensions.Script Method

 

Generates a script file.

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static Script(HtmlHelper, String)

Generates a script file.

System_CAPS_pubmethodSystem_CAPS_static 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

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

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the script file.

Return to top