|
HtmlHelperRenderResource(String, Type, Object) Method
|
Renders a Razor view from an embedded resource.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax public IEncodedString RenderResource(
string resourceName,
Type modelType = null,
Object model = null
)
Public Function RenderResource (
resourceName As String,
Optional modelType As Type = Nothing,
Optional model As Object = Nothing
) As IEncodedString
public:
IEncodedString^ RenderResource(
String^ resourceName,
Type^ modelType = nullptr,
Object^ model = nullptr
)
member RenderResource :
resourceName : string *
?modelType : Type *
?model : Object
(* Defaults:
let _modelType = defaultArg modelType null
let _model = defaultArg model null
*)
-> IEncodedString
function RenderResource(resourceName, modelType, model);
View SourceParameters
- resourceName String
- Embedded resource name.
- modelType Type (Optional)
- Type of model.
- model Object (Optional)
- Model instance.
Return Value
IEncodedStringRendered resource as an encoded string.
See Also