Click or drag to resize

WorkspaceGetDocumentIdInCurrentContext Method



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.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public virtual DocumentId GetDocumentIdInCurrentContext(
	SourceTextContainer container
)

Parameters

container
Type: Microsoft.CodeAnalysis.TextSourceTextContainer

Return Value

Type: DocumentId
See Also