ExportWorkspaceServiceFactoryAttribute(Type, String) 构造函数

定义

声明要 IWorkspaceServiceFactory 包含在基于 MEF 的工作区中的实现。

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

参数

serviceType
Type

将用于从 HostWorkspaceServices检索服务的类型。

layer
String

为其指定服务的层或工作区类型; DefaultMiscellaneousFiles

适用于