Note
See also the security notes at the Remarks section of the BinarySerializationFormatter class for more details.
public bool SafeMode { get; set; }
Public Property SafeMode As Boolean
Get
Set
public:
property bool SafeMode {
bool get ();
void set (bool value);
}
member SafeMode : bool with get, set
If SafeMode is , then no assembly loading will occur on deserialization.
If SafeMode is , then BindToType may load assemblies during the deserialization.
To prevent the consumer IFormatter from loading assemblies the BindToType method never returns ; instead, it throws a SerializationException if a type could not be resolved.