Solution.WithDocumentTextLoader 方法

定义

创建一个新的解决方案实例,其中指定的文档已更新为文本加载程序提供的文本。

public:
 Microsoft::CodeAnalysis::Solution ^ WithDocumentTextLoader(Microsoft::CodeAnalysis::DocumentId ^ documentId, Microsoft::CodeAnalysis::TextLoader ^ loader, Microsoft::CodeAnalysis::PreservationMode mode);
public Microsoft.CodeAnalysis.Solution WithDocumentTextLoader (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.TextLoader loader, Microsoft.CodeAnalysis.PreservationMode mode);
member this.WithDocumentTextLoader : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.TextLoader * Microsoft.CodeAnalysis.PreservationMode -> Microsoft.CodeAnalysis.Solution
Public Function WithDocumentTextLoader (documentId As DocumentId, loader As TextLoader, mode As PreservationMode) As Solution

参数

documentId
DocumentId
loader
TextLoader

返回

适用于