CompositionServices Class

 

Class to standardize usage of MEF within T4.

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

System::Object
  Microsoft.VisualStudio.TextTemplating.VSHost::CompositionServices

public ref class CompositionServices abstract sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticServiceContainer

Service container to add local services within the AppDomain

System_CAPS_pubpropertySystem_CAPS_staticServiceProvider

Service provider to ask for local services within the AppDomain Query for SComponentModel to acquire MEF services.

To make the services available, write this in your text template:

<#@ template hostSpecific="true" #>

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: