Compartilhar via


Workspace.GetDocumentIdInCurrentContext(SourceTextContainer) Método

Definição

Obtém a ID do documento associado ao contêiner de texto fornecido em seu contexto atual. Os documentos normalmente são associados a um contêiner de texto quando os documentos são abertos.

public:
 virtual Microsoft::CodeAnalysis::DocumentId ^ GetDocumentIdInCurrentContext(Microsoft::CodeAnalysis::Text::SourceTextContainer ^ container);
public virtual Microsoft.CodeAnalysis.DocumentId GetDocumentIdInCurrentContext (Microsoft.CodeAnalysis.Text.SourceTextContainer container);
public virtual Microsoft.CodeAnalysis.DocumentId? GetDocumentIdInCurrentContext (Microsoft.CodeAnalysis.Text.SourceTextContainer container);
abstract member GetDocumentIdInCurrentContext : Microsoft.CodeAnalysis.Text.SourceTextContainer -> Microsoft.CodeAnalysis.DocumentId
override this.GetDocumentIdInCurrentContext : Microsoft.CodeAnalysis.Text.SourceTextContainer -> Microsoft.CodeAnalysis.DocumentId
Public Overridable Function GetDocumentIdInCurrentContext (container As SourceTextContainer) As DocumentId

Parâmetros

Retornos

Aplica-se a