Click or drag to resize

FileTextLoader Class



Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces.Desktop (in Microsoft.CodeAnalysis.Workspaces.Desktop.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class FileTextLoader : TextLoader

The FileTextLoader type exposes the following members.

Constructors
  NameDescription
Public methodFileTextLoader
Creates a content loader for specified file.
Top
Properties
  NameDescription
Public propertyDefaultEncoding
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 null auto-detect heuristics are used to determine the encoding. If these heuristics fail the decoding is assumed to be Default. Note that if the stream starts with Byte Order Mark the value of DefaultEncoding is ignored.
Public propertyPath
Absolute path of the file.
Top
Methods
  NameDescription
Protected methodCreateText
Public methodLoadTextAndVersionAsync(Void, TextAndVersion, Workspace) (Inherited from TextLoader.)
Public methodLoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
Load a text and a version of the document in the workspace.
Top
See Also