Compartilhar via


ITextTemplatingEngineHost Interface

Definition

The interface for the host that transforms text templates. This is available to directive processors and can also be accessed by text templates.

public interface class ITextTemplatingEngineHost
[System.CLSCompliant(true)]
public interface ITextTemplatingEngineHost
[<System.CLSCompliant(true)>]
type ITextTemplatingEngineHost = interface
Public Interface ITextTemplatingEngineHost
Attributes

Properties

StandardAssemblyReferences

Gets a list of assembly references.

StandardImports

Gets a list of namespaces.

TemplateFile

Gets the path and file name of the text template that is being processed.

Methods

GetHostOption(String)

Called by the Engine to ask for the value of a specified option. Return null if you do not know.

LoadIncludeText(String, String, String)

Acquires the text that corresponds to a request to include a partial text template file.

LogErrors(CompilerErrorCollection)

Receives a collection of errors and warnings from the transformation engine.

ProvideTemplatingAppDomain(String)

Provides an application domain to run the generated transformation class.

ResolveAssemblyReference(String)

Allows a host to provide additional information about the location of an assembly.

ResolveDirectiveProcessor(String)

Returns the type of a directive processor, given its friendly name.

ResolveParameterValue(String, String, String)

Resolves the value of a parameter for a directive processor if the parameter is not specified in the template text.

ResolvePath(String)

Allows a host to provide a complete path, given a file name or relative path.

SetFileExtension(String)

Tells the host the file name extension that is expected for the generated text output.

SetOutputEncoding(Encoding, Boolean)

Tells the host the encoding that is expected for the generated text output.

Applies to