FileTextLoader Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public ref class FileTextLoader : Microsoft::CodeAnalysis::TextLoader
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
public class FileTextLoader : Microsoft.CodeAnalysis.TextLoader
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")>]
type FileTextLoader = class
inherit TextLoader
Public Class FileTextLoader
Inherits TextLoader
- Inheritance
- Attributes
Constructors
FileTextLoader(String, Encoding) |
Creates a content loader for specified file. |
Properties
DefaultEncoding |
Specifies an encoding to be used if the actual encoding of the file
can't be determined from the stream content (the stream doesn't start with Byte Order Mark).
If |
Path |
Absolute path of the file. |
Methods
CreateText(Stream, Workspace) |
Creates SourceText from Stream. |
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken) |
Load a text and a version of the document in the workspace. |
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken) |
Load a text and a version of the document. (Inherited from TextLoader) |
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken) |
Obsolete.
Load a text and a version of the document in the workspace. |