View Source
Class ViewHelper
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
Constructors
View Source
ViewHelper(IFileSystem)
Declaration
public ViewHelper(IFileSystem viewFileSystem)
Parameters
Methods
View Source
CreateView(ITemplate, Boolean)
Declaration
public string CreateView(ITemplate t, bool overWrite = false)
Parameters
Type |
Name |
Description |
ITemplate |
t |
|
System.Boolean |
overWrite |
|
Returns
Type |
Description |
System.String |
|
View Source
GetDefaultFileContent(String, String, String, String)
Declaration
public static string GetDefaultFileContent(string layoutPageAlias = null, string modelClassName = null, string modelNamespace = null, string modelNamespaceAlias = null)
Parameters
Type |
Name |
Description |
System.String |
layoutPageAlias |
|
System.String |
modelClassName |
|
System.String |
modelNamespace |
|
System.String |
modelNamespaceAlias |
|
Returns
Type |
Description |
System.String |
|
View Source
UpdateViewFile(ITemplate, String)
Declaration
public string UpdateViewFile(ITemplate t, string currentAlias = null)
Parameters
Type |
Name |
Description |
ITemplate |
t |
|
System.String |
currentAlias |
|
Returns
Type |
Description |
System.String |
|
View Source
ViewPath(String)
Declaration
public string ViewPath(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.String |
|