TypeFilterLevel 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
- 繼承
- 屬性
欄位
Full | 3 | .NET Framework Remoting 的完整還原序列化層級。 在所有情況下它都支援遠端處理所支援的所有類型。 |
Low | 2 | .NET Framework Remoting 的低還原序列化層級。 它支援與基本遠端處理功能關聯的類型。 |
備註
警告
BinaryFormatter
不安全且無法確保安全。 如需詳細資訊,請參閱 BinaryFormatter 安全性指南。
.NET Framework 遠端處理提供兩個層級的自動還原串行化:Low 和 Full。 完整還原串行化層級支援所有遠端支援的所有類型自動還原串行化。 如需低和完整支援的 .NET Framework 遠端處理類型清單,請參閱 .NET Framework 遠端處理中的自動還原串行化。
您可以透過程式設計方式或使用應用程式組態檔來設定這個列舉的成員。 如需範例,請參閱 .NET Framework 遠端中的自動還原串行化。
警告
請不要假設控制還原序列化是您應用程式所需的唯一安全性。 在分散式應用程式中,即使高度控制串行化,也可能不會防止惡意客戶端攔截通訊,並以某種方式使用它,即使只是向其他人顯示數據也一樣。