Workspace.GetRelatedDocumentIds(SourceTextContainer) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与给定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)
参数
- container
- SourceTextContainer