Click or drag to resize
HtmlContentInjector Class
A class that describes content to inject into HTML.
Inheritance Hierarchy
SystemObject
  VirtualRadar.Interface.WebSiteHtmlContentInjector

Namespace: VirtualRadar.Interface.WebSite
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class HtmlContentInjector

The HtmlContentInjector type exposes the following members.

Constructors
  NameDescription
Public methodHtmlContentInjector
Initializes a new instance of the HtmlContentInjector class
Top
Properties
  NameDescription
Public propertyAtStart
Gets and sets a value indicating whether the content should be injected at the start or end of an HTML element.
Public propertyContent
Gets and sets a delegate that returns the content to inject into the HTML.
Public propertyElement
Gets and sets the HTML element to inject the content into - e.g. HEAD, BODY, HTML etc. Case insensitive.
Public propertyPathAndFile
Gets and sets the path and file of the HTML file to inject content into. A null string injects into every HTML file served by the site. Case insensitive.
Public propertyPriority
Gets or sets the order in which the injector will be called. Lower values have priority over higher values.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This differs from SiteRoot in that you are free to change the values after you have added it to the IWebSite. Be aware that the multi-threaded nature of the server and site can mean that your Content method could be called while you are changing the injector's properties - if your Content method refers to the properties of the injector then you should remove the existing injector from the web site, change its values and then add it back to the web site rather than change them while it's still attached.
See Also