Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ITextTemplatingEngineHost.SetFileExtension Method

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

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)

abstract SetFileExtension : 
        extension:string -> unit


Type: String

The file name extension for the generated text output.

If the user has specified the optional output parameter of the template directive in a text template, the engine calls this method. For more information, see T4 Text Template Directives.

The following code example shows a possible implementation for a custom host. This code example is part of a larger example. For the complete example, see Walkthrough: Creating a Custom Text Template Host.

No code example is currently available or this language may not be supported.

© 2015 Microsoft