Workspace.GetRelatedDocumentIds(SourceTextContainer) 方法

定义

获取与给定container关联的快照中CurrentSolution文档的 ID。 打开文档时,文档通常与文本容器关联。

public:
 virtual System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::DocumentId ^> ^ GetRelatedDocumentIds(Microsoft::CodeAnalysis::Text::SourceTextContainer ^ container);
public virtual System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.DocumentId> GetRelatedDocumentIds (Microsoft.CodeAnalysis.Text.SourceTextContainer container);
abstract member GetRelatedDocumentIds : Microsoft.CodeAnalysis.Text.SourceTextContainer -> seq<Microsoft.CodeAnalysis.DocumentId>
override this.GetRelatedDocumentIds : Microsoft.CodeAnalysis.Text.SourceTextContainer -> seq<Microsoft.CodeAnalysis.DocumentId>
Public Overridable Function GetRelatedDocumentIds (container As SourceTextContainer) As IEnumerable(Of DocumentId)

参数

返回

适用于