共用方式為


ExportWorkspaceServiceAttribute(Type, String) 建構函式

定義

IWorkspaceService宣告實作以包含在 MEF 型工作區中。

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

參數

serviceType
Type

將用來從 HostWorkspaceServices 擷取服務的型別。

layer
String

服務所指定的圖層; Default等。

適用於