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 | |
---|---|---|
![]() ![]() |
Css(HtmlHelper, String) | Indicates the CSS method that you can use for MVC. |
![]() ![]() |
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
file
Type: System.StringThe CSS file.
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
file
Type: System.StringThe CSS file.
mediaType
Type: System.StringThe media type.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A MvcHtmlString representing the CSS.
Return to top