共用方式為


Workspace.GetRelatedDocumentIds(SourceTextContainer) 方法

定義

取得與指定 container 相關聯之 CurrentSolution 快照集內檔的識別碼。 開啟檔時,檔通常會與文字容器相關聯。

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)

參數

傳回

適用於