Click or drag to resize

Template Methods

The Template type exposes the following members.

Methods
  NameDescription
Public methodClone
Returns a MemberwiseClone copy of this object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExpand(IAppContext, NameValueCollection, String, String, String)
Public methodExpand(IAppContext, NameValueCollection, ContentResolution, String, String, String)
Expands the template using the nameValues.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFireEvent
Fires the specified ExtensionEvents against the template's extensions. See TemplateExtensionBase for information about available template events.
Public methodGetExpandedBody
Public methodGetExpandedSubject
Returns the subject expanded with the items from the nameValues
Public methodGetFieldList(ContentResolution) Obsolete.
Gets a semi-colon-separated field list appropriate for use as an IncludeFields string. Note this method is deprecated in favor of GetFieldList(IAppContext, ContentResolution, TemplateReplaceFlags) because an IAppContext is required in order to include any inner template fields (see Template.
Public methodGetFieldList(IAppContext, ContentResolution, TemplateReplaceFlags)
Gets a semi-colon-separated field list appropriate for use as an IncludeFields string.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTemplateNodes
Gets the collection of TemplateNode objects describing this template. The collection will be loaded if it has not yet been loaded.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReplace(NameValueCollection)
Replaces the named tags in the document with the values in the NameValueCollection. Note that this overload does not support embedded function resolution. Use the Replace(IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags) overload if embedded function resolution is desired.
Public methodReplace(NameValueCollection, ContentResolution)
Replaces the named tags in the document with the values in the NameValueCollection. Note that this overload does not support embedded function resolution. Use the Replace(IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags) overload if embedded function resolution is desired.
Public methodReplace(NameValueCollection, ContentResolution, TemplateReplaceFlags)
Replaces the named tags in the document with the values in the NameValueCollection. Note that this overload does not support embedded function resolution. Use the Replace(IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags) overload if embedded function resolution is desired.
Public methodReplace(IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUsesNodeBasedExpansion
Gets whether or not this template uses the new node-based template expansion. To enable node-based expansion system-wide, set the UseNodeBasedTemplateExpansionCompatibility feature. To enable it for a particular template only set the template's UseNewTemplateExpansion attribute.
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also