TypeFilterLevel Enum

Definition

Caution

Formatter-based serialization is obsolete and should not be used.

Specifies the level of automatic deserialization for .NET Framework remoting.

public enum class TypeFilterLevel
public enum TypeFilterLevel
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum TypeFilterLevel
[System.Runtime.InteropServices.ComVisible(true)]
public enum TypeFilterLevel
type TypeFilterLevel = 
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type TypeFilterLevel = 
[<System.Runtime.InteropServices.ComVisible(true)>]
type TypeFilterLevel = 
Public Enum TypeFilterLevel
Inheritance
TypeFilterLevel
Attributes

Fields

Full 3

The full deserialization level for .NET Framework remoting. It supports all types that remoting supports in all situations.

Low 2

The low deserialization level for .NET Framework remoting. It supports types associated with basic remoting functionality.

Remarks

Warning

BinaryFormatter is insecure and can't be made secure. For more information, see the BinaryFormatter security guide.

.NET Framework remoting provides two levels of automatic deserialization, Low and Full. The Full deserialization level supports automatic deserialization of all types that remoting supports in all situations. For a list of the .NET Framework remoting types that Low and Full support, see Automatic Deserialization in .NET Framework Remoting.

You can set the members of this enumeration programmatically or by using an application configuration file. For examples, see Automatic Deserialization in .NET Framework Remoting.

Caution

Do not assume that controlling deserialization is the only security your application requires. In distributed applications, even a high degree of control over serialization might not prevent malicious clients from intercepting the communication and using it in some way, even if that is merely showing data to others.

Applies to

See also