Partager via


Workspace.TryGetWorkspace(SourceTextContainer, Workspace) Méthode

Définition

Obtient l’espace de travail associé au conteneur de texte spécifique.

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

Paramètres

textContainer
SourceTextContainer
workspace
Workspace

Retours

S’applique à