SerializationInfo SerializationInfo SerializationInfo Constructors

Definition

Overloads

SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter)

Creates a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter, Boolean) SerializationInfo(Type, IFormatterConverter, Boolean) SerializationInfo(Type, IFormatterConverter, Boolean)

Initializes a new instance of the SerializationInfo class.

SerializationInfo(Type, IFormatterConverter) SerializationInfo(Type, IFormatterConverter) 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 Type Type

The Type of the object to serialize.

Exceptions

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) SerializationInfo(Type, IFormatterConverter, Boolean) 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 Type Type

The Type of the object to serialize.

requireSameTokenInPartialTrust
Boolean Boolean Boolean

Indicates whether the object requires same token in partial trust.

Applies to