다음을 통해 공유


MemoryStream 멤버

백업 저장소가 메모리인 스트림을 만듭니다.

다음 표에서는 MemoryStream 형식에 의해 노출되는 멤버를 보여 줍니다.

Public 생성자

  이름 설명
Public method Supported by the .NET Compact Framework MemoryStream 오버로드되었습니다. MemoryStream 클래스의 새 인스턴스를 초기화합니다.

위쪽

Public 속성

  이름 설명
Public property Supported by the .NET Compact Framework CanRead 재정의되었습니다. 현재 스트림이 읽기를 지원하는지 여부를 나타내는 값을 가져옵니다.
Public property Supported by the .NET Compact Framework CanSeek 재정의되었습니다. 현재 스트림이 검색을 지원하는지 여부를 나타내는 값을 가져옵니다.
Public property Supported by the .NET Compact Framework CanTimeout  현재 스트림이 시간 초과될 수 있는지 여부를 결정하는 값을 가져옵니다.(Stream에서 상속됨)
Public property Supported by the .NET Compact Framework CanWrite 재정의되었습니다. 현재 스트림이 쓰기를 지원하는지 여부를 나타내는 값을 가져옵니다.
Public property Supported by the .NET Compact Framework Capacity 이 스트림에 할당된 바이트 수를 가져오거나 설정합니다.
Public property Supported by the .NET Compact Framework Length 재정의되었습니다. 스트림의 길이(바이트)를 가져옵니다.
Public property Supported by the .NET Compact Framework Position 재정의되었습니다. 스트림 내의 현재 위치를 가져오거나 설정합니다.
Public property Supported by the .NET Compact Framework ReadTimeout  스트림이 시간 초과 전에 읽기 시도를 할 수 있는 시간을 결정하는 값을 가져오거나 설정합니다. (Stream에서 상속됨)
Public property Supported by the .NET Compact Framework WriteTimeout  스트림이 시간 초과 전에 쓰기 시도를 할 수 있는 시간을 결정하는 값을 가져오거나 설정합니다. (Stream에서 상속됨)

위쪽

Public 메서드

( Protected 메서드 참조)

  이름 설명
Public method Supported by the .NET Compact Framework BeginRead  비동기 읽기 작업을 시작합니다. (Stream에서 상속됨)
Public method Supported by the .NET Compact Framework BeginWrite  비동기 쓰기 작업을 시작합니다. (Stream에서 상속됨)
Public method Supported by the .NET Compact Framework Close  현재 스트림을 닫고 현재 스트림과 관련된 소켓과 파일 핸들 등의 리소스를 모두 해제합니다. (Stream에서 상속됨)
Public method CreateObjRef  원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨)
Public method Supported by the .NET Compact Framework Dispose 오버로드되었습니다.  
Public method Supported by the .NET Compact Framework EndRead  보류 중인 비동기 읽기가 완료되기를 기다립니다. (Stream에서 상속됨)
Public method Supported by the .NET Compact Framework EndWrite  비동기 쓰기 작업을 끝냅니다. (Stream에서 상속됨)
Public method Supported by the .NET Compact Framework Equals  오버로드되었습니다. 두 개의 Object 인스턴스가 같은지 여부를 확인합니다. (Object에서 상속됨)
Public method Supported by the .NET Compact Framework Flush 재정의되었습니다. Stream.Flush를 재정의하여 아무런 동작도 수행되지 않도록 합니다.
Public method Supported by the .NET Compact Framework GetBuffer 이 스트림을 만드는 데 사용된 부호 없는 바이트의 배열을 반환합니다.
Public method Supported by the .NET Compact Framework GetHashCode  특정 형식에 대한 해시 함수로 사용되며 GetHashCode는 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에 사용하기 적당합니다. (Object에서 상속됨)
Public method GetLifetimeService  이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨)
Public method Supported by the .NET Compact Framework GetType  현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public method InitializeLifetimeService  이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨)
Public method Supported by the .NET Compact Framework Read 재정의되었습니다. 현재 스트림에서 바이트 블록을 읽어서 buffer에 씁니다.
Public method Supported by the .NET Compact Framework ReadByte 재정의되었습니다. 현재 스트림에서 바이트를 읽습니다.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  지정한 Object 인스턴스가 동일한지 여부를 확인합니다. (Object에서 상속됨)
Public method Supported by the .NET Compact Framework Seek 재정의되었습니다. 현재 스트림 내의 위치를 지정된 값으로 설정합니다.
Public method Supported by the .NET Compact Framework SetLength 재정의되었습니다. 현재 스트림의 길이를 지정된 값으로 설정합니다.
Public method Static Synchronized  지정된 Stream 개체에 대해 동기화되어 스레드로부터 안전하게 보호되는 래퍼를 만듭니다. (Stream에서 상속됨)
Public method Supported by the .NET Compact Framework ToArray Position 속성에 관계없이 바이트 배열에 스트림 내용을 씁니다.
Public method Supported by the .NET Compact Framework ToString  현재 Object를 나타내는 String을 반환합니다. (Object에서 상속됨)
Public method Supported by the .NET Compact Framework Write 재정의되었습니다. 버퍼에서 읽은 데이터를 사용하여 현재 스트림에 바이트 블록을 씁니다.
Public method Supported by the .NET Compact Framework WriteByte 재정의되었습니다. 현재 위치에서 현재 스트림에 바이트를 씁니다.
Public method Supported by the .NET Compact Framework WriteTo 다른 스트림에 이 메모리 스트림의 전체 내용을 씁니다.

위쪽

Protected 메서드

  이름 설명
Protected method Supported by the .NET Compact Framework CreateWaitHandle  WaitHandle 개체를 할당합니다. (Stream에서 상속됨)
Protected method Supported by the .NET Compact Framework Dispose 오버로드되었습니다. 재정의되었습니다.  
Protected method Supported by the .NET Compact Framework Finalize  가비지 수집기에서 Object를 회수하기 전에 Object가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Protected method Supported by the .NET Compact Framework MemberwiseClone  오버로드되었습니다. ( MarshalByRefObject에서 상속됨)

위쪽

참고 항목

참조

MemoryStream 클래스
System.IO 네임스페이스

기타 리소스

파일 및 스트림 I/O
방법: 파일의 텍스트 읽기
방법: 파일에 텍스트 쓰기