Click or drag to resize

ExtendedTemplateBase Class

Represents an extended RazorEngine template base with helper functions.
Inheritance Hierarchy
SystemObject
  TemplateBase
    GSF.Web.ModelExtendedTemplateBase

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public abstract class ExtendedTemplateBase : TemplateBase
View Source

The ExtendedTemplateBase type exposes the following members.

Constructors
 NameDescription
Protected methodExtendedTemplateBase Creates a new ExtendedTemplateBase.
Top
Properties
 NameDescription
Protected propertyContext Gets the current HttpContext.
Public propertyCurrentWriter Gets the current writer.
(Inherited from TemplateBase)
Public propertyHtml Gets HTML based helper functions.
Public propertyInternalTemplateService Gets or sets the template service.
(Inherited from TemplateBase)
Public propertyLayout Gets or sets the layout template name.
(Inherited from TemplateBase)
Public propertyRazor Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase)
Public propertyRazorEngineObsolete.
Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase)
Public propertyTemplateServiceObsolete.
Gets or sets the template service.
(Inherited from TemplateBase)
Public propertyUrl Gets URL based helper functions.
Public propertyViewBag Gets the viewbag that allows sharing state between layout and child templates.
(Inherited from TemplateBase)
Top
Methods
 NameDescription
Public methodDefineSection Defines a section that can written out to a layout.
(Inherited from TemplateBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Executes the compiled template.
(Inherited from TemplateBase)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInclude Includes the template with the specified name.
(Inherited from TemplateBase)
Public methodIsSectionDefined Determines if the section with the specified name has been defined.
(Inherited from TemplateBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRaw Returns the specified string as a raw string. This will ensure it is not encoded.
(Inherited from TemplateBase)
Public methodRenderBody Renders the body of the template.
(Inherited from TemplateBase)
Public methodRenderSection Renders the section with the specified name.
(Inherited from TemplateBase)
Protected methodResolveLayout Resolves the layout template.
(Inherited from TemplateBase)
Public methodResolveUrl Resolves the specified path
(Inherited from TemplateBase)
Public methodSetData Set the data for this template.
(Inherited from TemplateBase)
Public methodSetModel Set the current model.
(Inherited from TemplateBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite(Object) Writes the specified object to the result.
(Inherited from TemplateBase)
Public methodWrite(TemplateWriter) Writes the specified template helper result.
(Inherited from TemplateBase)
Public methodWriteAttribute Writes an attribute to the result.
(Inherited from TemplateBase)
Public methodWriteAttributeTo Writes an attribute to the specified TextWriter.
(Inherited from TemplateBase)
Public methodWriteLiteral Writes the specified string to the result.
(Inherited from TemplateBase)
Public methodWriteLiteralTo Writes a string literal to the specified TextWriter.
(Inherited from TemplateBase)
Public methodWriteTo(TextWriter, TemplateWriter) Writes the specfied template helper result to the specified writer.
(Inherited from TemplateBase)
Public methodWriteTo(TextWriter, Object) Writes the specified object to the specified TextWriter.
(Inherited from TemplateBase)
Top
Fields
 NameDescription
Protected field_context The current context, filled when we are currently writing a template instance.
(Inherited from TemplateBase)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also