Export (0) Print
Expand All

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
{
    get
    {
        return new string[]
        {
            "System"
        };
    }
}

Community Additions

ADD
Show:
© 2014 Microsoft