|
WebExtensionsIncludeResouce Method
|
Includes an embedded resource directly into an MVC view page.
Namespace: GSF.WebAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.246-beta
Syntaxpublic static MvcHtmlString IncludeResouce(
this HtmlHelper helper,
string resourceName
)
<ExtensionAttribute>
Public Shared Function IncludeResouce (
helper As HtmlHelper,
resourceName As String
) As MvcHtmlString
public:
[ExtensionAttribute]
static MvcHtmlString^ IncludeResouce(
HtmlHelper^ helper,
String^ resourceName
)
[<ExtensionAttribute>]
static member IncludeResouce :
helper : HtmlHelper *
resourceName : string -> MvcHtmlString
GSF.Web.WebExtensions.IncludeResouce = function(helper, resourceName);
View SourceParameters
- helper HtmlHelper
- MVC HTML helper instance.
- resourceName String
- Resource to include.
Return Value
MvcHtmlStringResource as an MvcHtmlString.
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
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also