ExportLanguageServiceAttribute(Type, String, String) Constructor

Definition

Use this attribute to declare 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; CSharp, etc.

layer
String

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

Remarks

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

Applies to