TypeFilterLevel 枚举

定义

注意

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

指定用于 .NET Framework 远程处理的自动反序列化的级别。

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
继承
TypeFilterLevel
属性

字段

Full 3

.NET Framework 远程处理的 Full (完全)反序列化级别。 它支持远程处理在所有情况下支持的所有类型。

Low 2

.NET Framework 远程处理的 Low (低)反序列化级别。 它支持与基本远程处理功能相关联的类型。

注解

警告

BinaryFormatter 不安全,无法确保安全。 有关详细信息,请参阅 BinaryFormatter 安全指南

.NET Framework远程处理提供两个级别的自动反序列化:低和完全。 完全反序列化级别支持在所有情况下远程处理支持的所有类型的自动反序列化。 有关 Low 和 Full 支持的.NET Framework远程处理类型的列表,请参阅 .NET Framework 远程处理中的自动反序列化

可以通过编程方式或使用应用程序配置文件设置此枚举的成员。 有关示例,请参阅.NET Framework远程处理中的自动反序列化

注意

请不要认为控制反序列化是应用程序所需的唯一安全机制。 在分布式应用程序中,即使对序列化进行高度控制,也可能无法阻止恶意客户端截获通信并以某种方式使用它,即使它只是向其他人显示数据。

适用于

另请参阅