Formatter 클래스

정의

주의

BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.

중요

이 API는 CLS 규격이 아닙니다.

공용 언어 런타임 serialization 포맷터의 기본 기능을 제공합니다.

public ref class Formatter abstract : System::Runtime::Serialization::IFormatter
[System.CLSCompliant(false)]
public abstract class Formatter : System.Runtime.Serialization.IFormatter
[System.CLSCompliant(false)]
[System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public abstract class Formatter : System.Runtime.Serialization.IFormatter
[System.CLSCompliant(false)]
[System.Serializable]
public abstract class Formatter : System.Runtime.Serialization.IFormatter
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class Formatter : System.Runtime.Serialization.IFormatter
[<System.CLSCompliant(false)>]
type Formatter = class
    interface IFormatter
[<System.CLSCompliant(false)>]
[<System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type Formatter = class
    interface IFormatter
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type Formatter = class
    interface IFormatter
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Formatter = class
    interface IFormatter
Public MustInherit Class Formatter
Implements IFormatter
상속
Formatter
특성
구현

설명

Formatterabstract 모든 런타임 serialization 포맷터의 기본 클래스이며 인터페이스를 구현하기 위한 몇 가지 도우미 메서드를 IFormatter 제공합니다. 또한 는 Formatter 직렬화를 위한 큐 개체를 관리하고 개체별로 ID를 생성합니다.

구현자 참고

상속 하는 경우 Formatter, 멤버를 재정의 해야 합니다.

생성자

Formatter()
사용되지 않음.

Formatter 클래스의 새 인스턴스를 초기화합니다.

필드

m_idGenerator
사용되지 않음.

현재 포맷터에 사용되는 ObjectIDGenerator가 들어 있습니다.

m_objectQueue
사용되지 않음.

serialize할 개체의 Queue가 들어 있습니다.

속성

Binder
사용되지 않음.

파생 클래스에서 재정의하는 경우 현재 포맷터에 사용되는 SerializationBinder를 가져오거나 설정합니다.

Context
사용되지 않음.

파생 클래스에서 재정의하는 경우 현재 serialization에 사용되는 StreamingContext를 가져오거나 설정합니다.

SurrogateSelector
사용되지 않음.

파생 클래스에서 재정의하는 경우 현재 포맷터에 사용되는 ISurrogateSelector를 가져오거나 설정합니다.

메서드

Deserialize(Stream)
사용되지 않음.

파생 클래스에서 재정의하는 경우, 포맷터에 연결된 스트림은 만들어질 때 역직렬화되며 해당 스트림에 원래 직렬화된 그래프와 동일한 개체 그래프가 만들어집니다.

Equals(Object)
사용되지 않음.

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()
사용되지 않음.

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetNext(Int64)
사용되지 않음.

serialize할 다음 개체를 포맷터의 내부 작업 큐에서 반환합니다.

GetType()
사용되지 않음.

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()
사용되지 않음.

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
Schedule(Object)
사용되지 않음.

개체가 나중에 serialize되도록 예약합니다.

Serialize(Stream, Object)
사용되지 않음.

파생 클래스에서 재정의하는 경우 루트가 지정된 개체 그래프를 포맷터에 이미 연결된 스트림에 serialize합니다.

ToString()
사용되지 않음.

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WriteArray(Object, String, Type)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 배열을 씁니다.

WriteBoolean(Boolean, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부울 값을 씁니다.

WriteByte(Byte, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 없는 8비트 정수를 씁니다.

WriteChar(Char, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 유니코드 문자를 씁니다.

WriteDateTime(DateTime, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 DateTime 값을 씁니다.

WriteDecimal(Decimal, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 Decimal 값을 씁니다.

WriteDouble(Double, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 배정밀도 부동 소수점 숫자를 씁니다.

WriteInt16(Int16, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 있는 16비트 정수를 씁니다.

WriteInt32(Int32, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 스트림에 부호 있는 32비트 정수를 씁니다.

WriteInt64(Int64, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 스트림에 부호 있는 64비트 정수를 씁니다.

WriteMember(String, Object)
사용되지 않음.

받은 데이터 형식을 검사한 다음 적절한 Write 메서드를 호출하여 포맷터에 이미 연결된 스트림에 씁니다.

WriteObjectRef(Object, String, Type)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 개체 참조를 씁니다.

WriteSByte(SByte, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 있는 8비트 정수를 씁니다.

WriteSingle(Single, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 단정밀도 부동 소수점 숫자를 씁니다.

WriteTimeSpan(TimeSpan, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 TimeSpan 값을 씁니다.

WriteUInt16(UInt16, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 없는 16비트 정수를 씁니다.

WriteUInt32(UInt32, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 없는 32비트 정수를 씁니다.

WriteUInt64(UInt64, String)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 부호 없는 64비트 정수를 씁니다.

WriteValueType(Object, String, Type)
사용되지 않음.

파생 클래스에서 재정의하는 경우 포맷터에 이미 연결된 스트림에 지정된 형식의 값을 씁니다.

적용 대상

추가 정보