|
HtmlHelperRenderResourceT(String, T) Method
|
Renders a Razor view from an embedded resource.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax public IEncodedString RenderResource<T>(
string resourceName,
T model
)
Public Function RenderResource(Of T) (
resourceName As String,
model As T
) As IEncodedString
public:
generic<typename T>
IEncodedString^ RenderResource(
String^ resourceName,
T model
)
member RenderResource :
resourceName : string *
model : 'T -> IEncodedString
JavaScript does not support generic types or methods.
View SourceParameters
- resourceName String
- Embedded resource name.
- model T
- Model instance.
Type Parameters
- T
- Type of model.
Return Value
IEncodedStringRendered resource as an encoded string.
See Also