Click or drag to resize

ExportLanguageServiceFactoryAttribute Constructor



Declares a ILanguageServiceFactory implementation for inclusion in a MEF-based workspace.

Namespace:  Microsoft.CodeAnalysis.Host.Mef
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public ExportLanguageServiceFactoryAttribute(
	Type type,
	string language,
	string layer = "Default"
)

Parameters

type
Type: SystemType
The type that will be used to retrieve the service from a HostLanguageServices.
language
Type: SystemString
The language that the service is target for; LanguageNames.CSharp, etc.
layer (Optional)
Type: SystemString
The layer that the service is specified for; ServiceLayer.Default, etc.
See Also