Solution.WithDocumentTextLoader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的方案實例,並將指定的檔更新為讓文字載入器提供的文字。
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
- mode
- PreservationMode