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
특성

생성자

Name Description
FileTextLoader(String, Encoding)

지정된 파일에 대한 콘텐츠 로더를 만듭니다.

속성

Name Description
DefaultEncoding

파일의 실제 인코딩을 스트림 콘텐츠에서 확인할 수 없는 경우 사용할 인코딩을 지정합니다(스트림은 바이트 순서 표시로 시작되지 않음). 자동 검색 추론이 인코딩을 결정하는 데 사용되는 경우 null 스트림이 바이트 순서 표시로 시작하는 경우 값 DefaultEncoding 은 무시됩니다.

Path

파일의 절대 경로입니다.

메서드

Name Description
CreateText(Stream, Workspace)

에서 Stream를 만듭니다SourceText.

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

작업 영역에서 텍스트 및 문서 버전을 로드합니다.

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

텍스트 및 문서 버전을 로드합니다.

(다음에서 상속됨 TextLoader)
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
사용되지 않음.

작업 영역에서 텍스트 및 문서 버전을 로드합니다.

적용 대상