SerializationInfo Constructor (Type, IFormatterConverter)

SerializationInfo Constructor (Type, IFormatterConverter)

 

Creates a new instance of the SerializationInfo class.

This API is not CLS-compliant.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

[CLSCompliantAttribute(false)]
public SerializationInfo(
	Type type,
	IFormatterConverter converter
)

Parameters

type
Type: System.Type

The Type of the object to serialize.

converter
Type: System.Runtime.Serialization.IFormatterConverter

The IFormatterConverter used during deserialization.

Exception Condition
ArgumentNullException

type or converter is null.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft