ExportLanguageServiceAttribute(Type, String, String) Constructor

Definition

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

public ExportLanguageServiceAttribute (Type type, string language, string layer = "Default");
new Microsoft.CodeAnalysis.Host.Mef.ExportLanguageServiceAttribute : Type * string * string -> Microsoft.CodeAnalysis.Host.Mef.ExportLanguageServiceAttribute
Public Sub New (type As Type, language As String, Optional layer As String = "Default")

Parameters

type
Type

The type that will be used to retrieve the service from a HostLanguageServices.

language
String

The language that the service is target for; LanguageNames.CSharp, etc.

layer
String

The layer that the service is specified for; ServiceLayer.Default, etc.

Applies to