共用方式為


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

為服務指定的圖層或工作區種類; Default等等 MiscellaneousFiles

適用於