Click or drag to resize

WorkspaceTryGetWorkspace Method



Gets the workspace associated with the specific text container.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static bool TryGetWorkspace(
	SourceTextContainer textContainer,
	out Workspace workspace
)

Parameters

textContainer
Type: Microsoft.CodeAnalysis.TextSourceTextContainer
workspace
Type: Microsoft.CodeAnalysisWorkspace

Return Value

Type: Boolean
See Also