This documentation is archived and is not being maintained.

ITextTemplatingEngineHost.StandardImports Property

Gets a list of namespaces.

Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating (in microsoft.visualstudio.texttemplating.dll)

IList<string> StandardImports { get; }
/** @property */
IList<String> get_StandardImports ()

function get StandardImports () : IList<String>

Property Value

An IList that contains namespaces.

Allows a host to specify standard namespaces to be imported by the generated transformation class, for example System. The engine will add these statements to the generated transformation class.

The following code example shows a possible implementation for a custom host. This code example is part of a larger example provided for the ITextTemplatingEngineHost interface.

public IList<string> StandardImports
        return new string[]