Formatter 클래스

정의

Important

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

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

public ref class Formatter abstract : 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)]
public abstract class Formatter : System.Runtime.Serialization.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
[<System.CLSCompliant(false)>]
type Formatter = class
    interface IFormatter
Public MustInherit Class Formatter
Implements IFormatter
상속
Formatter
특성
구현

설명

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

구현자 참고

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

생성자

Name Description
Formatter()

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

필드

Name Description
m_idGenerator

ObjectIDGenerator 현재 포맷터와 함께 사용되는 형식을 포함합니다.

m_objectQueue

serialize할 Queue 개체를 포함합니다.

속성

Name Description
Binder

파생 클래스에서 재정의되는 경우 현재 포맷터와 함께 사용되는 형식을 SerializationBinder 가져오거나 설정합니다.

Context

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

SurrogateSelector

파생 클래스에서 재정의되는 경우 현재 포맷터와 함께 사용되는 형식을 ISurrogateSelector 가져오거나 설정합니다.

메서드

Name Description
Deserialize(Stream)

파생 클래스에서 재정의된 경우 포맷터가 생성될 때 포맷터에 연결된 스트림을 역직렬화하여 원래 해당 스트림으로 직렬화된 그래프와 동일한 개체 그래프를 만듭니다.

Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

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

(다음에서 상속됨 Object)
GetNext(Int64)

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

GetType()

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

(다음에서 상속됨 Object)
MemberwiseClone()

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

(다음에서 상속됨 Object)
Schedule(Object)

나중에 serialization할 개체를 예약합니다.

Serialize(Stream, Object)

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

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비트 부속 정수(integer)를 씁니다.

WriteInt32(Int32, String)

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

WriteInt64(Int64, String)

파생 클래스에서 재정의된 경우 스트림에 부가된 64비트 정수를 씁니다.

WriteMember(String, Object)

수신된 데이터의 형식을 검사하고 적절한 Write 메서드를 호출하여 포맷터에 이미 연결된 스트림에 쓰기를 수행합니다.

WriteObjectRef(Object, String, Type)

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

WriteSByte(SByte, String)

파생 클래스에서 재정의된 경우 포맷터에 이미 연결된 스트림에 8비트 부가 정수(integer)를 씁니다.

WriteSingle(Single, String)

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

WriteTimeSpan(TimeSpan, String)

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

WriteUInt16(UInt16, String)

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

WriteUInt32(UInt32, String)

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

WriteUInt64(UInt64, String)

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

WriteValueType(Object, String, Type)

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

적용 대상

추가 정보