TypeFilterLevel 列舉

定義

警告

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

指定 .NET Framework Remoting 之自動還原序列化 (Deserialization) 的層級。

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 Remoting 的完整還原序列化層級。 在所有情況下它都支援遠端處理所支援的所有類型。

Low 2

.NET Framework Remoting 的低還原序列化層級。 它支援與基本遠端處理功能關聯的類型。

備註

警告

BinaryFormatter 不安全且無法確保安全。 如需詳細資訊,請參閱 BinaryFormatter 安全性指南

.NET Framework遠端處理提供兩個層級的自動還原序列化,[低] 和 [完整]。 完整還原序列化層級支援所有遠端處理支援的所有類型自動還原序列化。 如需低和完整支援的.NET Framework遠端類型清單,請參閱.NET Framework遠端處理中的自動還原序列化

您可以透過程式設計方式或使用應用程式組態檔來設定此列舉的成員。 如需範例,請參閱.NET Framework遠端中的自動還原序列化

警告

請不要假設控制還原序列化是您應用程式所需的唯一安全性。 在分散式應用程式中,即使是高度控制序列化,也可能不會防止惡意用戶端攔截通訊,並以某種方式使用它,即使只向其他人顯示資料也一樣。

適用於

另請參閱