|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Assembly: Microsoft.VisualStudio.TextTemplating (in microsoft.visualstudio.texttemplating.dll)
bool LoadIncludeText ( String^ requestFileName, [OutAttribute] String^% content, [OutAttribute] String^% location )
boolean LoadIncludeText ( String requestFileName, /** @attribute OutAttribute() */ /** @ref */ String content, /** @attribute OutAttribute() */ /** @ref */ String location )
The name of the partial text template file to acquire.
Athat contains the acquired text, or if the file could not be found.
A String that contains the location of the acquired text. If the host searches the registry for the location of include files, or if the host searches multiple locations by default, the host can return the final path of the include file in this parameter. The host can set location to Empty if the file could not be found, or if the host is not file system based.
Return Valuetrue to indicate that the host was able to acquire the text successfully; otherwise, false.
TasksWalkthrough: Creating a Custom Text Template Host
ConceptsDirective Syntax (Domain-Specific Languages)
Other ResourcesText Template Hosts
Generating Artifacts Using Text Templates