Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Class to standardize usage of MEF within T4.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TextTemplating.VSHost.CompositionServices
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll)
Syntax
'Declaration
Public NotInheritable Class CompositionServices
public static class CompositionServices
public ref class CompositionServices abstract sealed
[<AbstractClass>]
[<Sealed>]
type CompositionServices = class end
public final class CompositionServices
The CompositionServices type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() ![]() |
ServiceContainer | Service container to add local services within the AppDomain |
![]() ![]() |
ServiceProvider | Service provider to ask for local services within the AppDomain Query for SComponentModel to acquire MEF services. |
Top
Methods
Name | Description | |
---|---|---|
![]() ![]() |
InitializeServices | One-time initialization of the services |
Top
Remarks
To make the services available, write this in your text template:
<#@ template hostSpecific="true" #>
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.