FileTextLoader クラス

定義

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
継承
FileTextLoader
属性

コンストラクター

FileTextLoader(String, Encoding)

指定したファイルのコンテンツ ローダーを作成します。

プロパティ

DefaultEncoding

ストリームコンテンツからファイルの実際のエンコーディングを決定できない場合に使用するエンコーディングを指定します(ストリームはバイトオーダーマークで始まらない)。 自動検出ヒューリスティックを使用してエンコードを決定する場合 null 。 ストリームが Byte Order Mark で始まる場合、 の DefaultEncoding 値は無視されることに注意してください。

Path

ファイルの絶対パス。

メソッド

CreateText(Stream, Workspace)

からStreamを作成SourceTextします。

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

ワークスペースにテキストとドキュメントのバージョンを読み込みます。

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

テキストとドキュメントのバージョンを読み込みます。

(継承元 TextLoader)
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
古い.

ワークスペースにテキストとドキュメントのバージョンを読み込みます。

適用対象