SerializationInfo Constructors

Definition

Initializes a new instance of the SerializationInfo class.

Overloads

SerializationInfo(Type, IFormatterConverter)

Creates a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter, Boolean)

Initializes a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter)

Important

This API is not CLS-compliant.

Creates a new instance of the SerializationInfo class.

public:
 SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter);
[System.CLSCompliant(false)]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter);
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo

Parameters

type
Type

The Type of the object to serialize.

converter
IFormatterConverter

The IFormatterConverter used during deserialization.

Attributes

Exceptions

type or converter is null.

Remarks

The IFormatterConverter passed as the converter parameter converts data from its internal representation to the form the user requested. The internal representation of the data within the SerializationInfo depends on the formatter that created it.

SerializationInfo(Type, IFormatterConverter, Boolean)

Important

This API is not CLS-compliant.

Initializes a new instance of the SerializationInfo class.

public:
 SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter, bool requireSameTokenInPartialTrust);
[System.CLSCompliant(false)]
public SerializationInfo (Type type, System.Runtime.Serialization.IFormatterConverter converter, bool requireSameTokenInPartialTrust);
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo

Parameters

type
Type

The Type of the object to serialize.

converter
IFormatterConverter

The IFormatterConverter used during deserialization.

requireSameTokenInPartialTrust
Boolean

Indicates whether the object requires same token in partial trust.

Attributes

Applies to