Workspace(HostServices, String) 构造函数

定义

构造新的工作区实例。

protected:
 Workspace(Microsoft::CodeAnalysis::Host::HostServices ^ host, System::String ^ workspaceKind);
protected Workspace (Microsoft.CodeAnalysis.Host.HostServices host, string workspaceKind);
protected Workspace (Microsoft.CodeAnalysis.Host.HostServices host, string? workspaceKind);
new Microsoft.CodeAnalysis.Workspace : Microsoft.CodeAnalysis.Host.HostServices * string -> Microsoft.CodeAnalysis.Workspace
Protected Sub New (host As HostServices, workspaceKind As String)

参数

host
HostServices

HostServices 工作区使用

workspaceKind
String

可用于标识工作区类型的字符串。 这通常与类的名称匹配。

适用于