SerializationInfo Constructor (Type, IFormatterConverter)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: