Compartilhar via


Workspace.TryGetWorkspace(SourceTextContainer, Workspace) Método

Definição

Obtém o workspace associado ao contêiner de texto específico.

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

Parâmetros

textContainer
SourceTextContainer
workspace
Workspace

Retornos

Aplica-se a