Share via


Workspace(HostServices, String) Constructor

Definition

Constructs a new workspace instance.

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)

Parameters

host
HostServices

The HostServices this workspace uses

workspaceKind
String

A string that can be used to identify the kind of workspace. Usually this matches the name of the class.

Applies to