Workspace.GetDocumentIdInCurrentContext(SourceTextContainer) Method

Definition

Gets the id for the document associated with the given text container in its current context. Documents are normally associated with a text container when the documents are opened.

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

Parameters

Returns

Applies to