View Source
Class ViewHelper
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ViewHelper : IViewHelper
Constructors
View Source
ViewHelper(FileSystems, IDefaultViewContentProvider)
Declaration
public ViewHelper(FileSystems fileSystems, IDefaultViewContentProvider defaultViewContentProvider)
Parameters
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
GetFileContents(ITemplate)
Declaration
public string GetFileContents(ITemplate t)
Parameters
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
ViewExists(ITemplate)
Declaration
public bool ViewExists(ITemplate t)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
ViewPath(String)
Declaration
public string ViewPath(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.String |
|