TemplatedCodeGenerator Class

 

Parses a file template to produce its output. Only a single generator is needed for any style of template as the custom code is handled with directive providers.

Namespace:   Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)


[GuidAttribute("B9C665D2-0451-4ae2-A38C-443B85D634F2")]
public class TemplatedCodeGenerator : BaseTemplatedCodeGenerator

NameDescription
System_CAPS_protpropertyDte

Get the DTE object(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyErrorList

Get the Vs ErrorList object(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyFileNamespace

namespace for the file.(Inherited from BaseCodeGenerator.)

System_CAPS_protpropertyGlobalServiceProvider

Provides a wrapper on the global service provider for Visual Studio(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyInputFilePath

file-path for the input file.(Inherited from BaseCodeGenerator.)

System_CAPS_protpropertySiteServiceProvider

Get a wrapper on the containing project system's Service provider <remarks> This is a limited service provider that can only reliably provide VxDTE::SID_SVSProjectItem SID_SVSWebReferenceDynamicProperties IID_IVsHierarchy SID_SVsApplicationSettings To get the global provider, call GetSite on IVSHierarchy or use the GlobalServiceProvider property </remarks>(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyTextTemplating

Get the TextTemplating service from Visual Studio(Inherited from BaseTemplatedCodeGenerator.)

NameDescription
System_CAPS_protmethodCreateExceptionMessage(Exception)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodDispose()

Releases all resources used by this instance.(Inherited from BaseCodeGenerator.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from BaseCodeGenerator.)

System_CAPS_pubmethodGenerate(String, String, String, IntPtr, Int32, IVsGeneratorProgress)

(Inherited from BaseCodeGenerator.)

System_CAPS_protmethodGenerateCode(String, String)
System_CAPS_protmethodGeneratorErrorCallback(Boolean, Int32, String, Int32, Int32)

(Inherited from BaseCodeGenerator.)

System_CAPS_pubmethodGetDefaultExtension()

Get the extension of the file that should be created(Inherited from BaseTemplatedCodeGenerator.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetService(Guid)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protmethodGetService(Type)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodGetSite(Guid, IntPtr)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodProcessTemplate(String, String, ITextTemplating, IVsHierarchy)

Do the actual template processing that forms the core of this generator(Inherited from BaseTemplatedCodeGenerator.)

System_CAPS_pubmethodSetSite(Object)

(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protmethodSetWaitCursor()

Set the wait cursor until the end of this generation(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_protfieldcallback

(Inherited from BaseTemplatedCodeGenerator.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: