Freigeben über


Workspace.TryGetWorkspace(SourceTextContainer, Workspace) Methode

Definition

Ruft den Arbeitsbereich ab, der dem spezifischen Textcontainer zugeordnet ist.

public:
 static bool TryGetWorkspace(Microsoft::CodeAnalysis::Text::SourceTextContainer ^ textContainer, [Runtime::InteropServices::Out] Microsoft::CodeAnalysis::Workspace ^ % workspace);
public static bool TryGetWorkspace (Microsoft.CodeAnalysis.Text.SourceTextContainer textContainer, out Microsoft.CodeAnalysis.Workspace workspace);
public static bool TryGetWorkspace (Microsoft.CodeAnalysis.Text.SourceTextContainer textContainer, out Microsoft.CodeAnalysis.Workspace? workspace);
static member TryGetWorkspace : Microsoft.CodeAnalysis.Text.SourceTextContainer * Workspace -> bool
Public Shared Function TryGetWorkspace (textContainer As SourceTextContainer, ByRef workspace As Workspace) As Boolean

Parameter

textContainer
SourceTextContainer
workspace
Workspace

Gibt zurück

Gilt für: