SerializationInfo Constructor (Type, IFormatterConverter)
.NET Framework (current version)
Creates a new instance of the SerializationInfo class.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
[<CLSCompliantAttribute(false)>] new : type:Type * converter:IFormatterConverter -> SerializationInfo
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
Available since 1.1
Show: