Share via


SerializationInfo.SetType(Type) 메서드

정의

serialize할 개체의 Type을 설정합니다.

public:
 void SetType(Type ^ type);
public void SetType (Type type);
member this.SetType : Type -> unit
Public Sub SetType (type As Type)

매개 변수

type
Type

serialize할 개체의 Type입니다.

예외

type 매개 변수가 null인 경우

설명

Formatter 에 전달하기 전에 instance 설정을 TypeSerializationInfo 담당합니다GetObjectData. 그러나 개체에 대한 프록시를 보내려는 사용자는 이 SerializationInfo instance 나타내는 형식을 변경해야 합니다. 메서드를 SetType 사용하는 것은 및 AssemblyNameFullTypeName 둘 다 설정하는 것과 같습니다.

적용 대상