Share via


CssExtensions.Css Method

 

Indicates the CSS method that you can use for MVC.

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static Css(HtmlHelper, String)

Indicates the CSS method that you can use for MVC.

System_CAPS_pubmethodSystem_CAPS_static Css(HtmlHelper, String, String)

Indicates the CSS method that you can use for MVC.

See Also

CssExtensions Class
Microsoft.Web.Mvc Namespace

Return to top

CssExtensions.Css Method (HtmlHelper, String)

Indicates the CSS method that you can use for MVC.

Syntax

public static MvcHtmlString Css(
    this HtmlHelper helper,
    string file
)
public:
[ExtensionAttribute]
static MvcHtmlString^ Css(
    HtmlHelper^ helper,
    String^ file
)
static member Css : 
        helper:HtmlHelper *
        file:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function Css (
    helper As HtmlHelper,
    file As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString representing the CSS.

Return to top

CssExtensions.Css Method (HtmlHelper, String, String)

Indicates the CSS method that you can use for MVC.

Syntax

public static MvcHtmlString Css(
    this HtmlHelper helper,
    string file,
    string mediaType
)
public:
[ExtensionAttribute]
static MvcHtmlString^ Css(
    HtmlHelper^ helper,
    String^ file,
    String^ mediaType
)
static member Css : 
        helper:HtmlHelper *
        file:string *
        mediaType:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function Css (
    helper As HtmlHelper,
    file As String,
    mediaType As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString representing the CSS.

Return to top