Note
In .NET Framework 3.5 setting this property has no effect during serialization unless the binder implements
the ISerializationBinder interface.
public SerializationBinder? Binder { get; set; }
Public Property Binder As SerializationBinder
Get
Set
public:
virtual property SerializationBinder^ Binder {
SerializationBinder^ get () sealed;
void set (SerializationBinder^ value) sealed;
}
abstract Binder : SerializationBinder with get, set
override Binder : SerializationBinder with get, set
By default, the binder is not called for natively supported types.
If the ForceRecursiveSerializationOfSupportedTypes flag is set in Options, then the binder is called for the non-primitive natively supported types.
This formatter does not call the binder types that have element types, for constructed generic types and generic parameter types. Instead, the binder is called only for the element types, the generic type definition and the generic arguments separately.