FormatterAssemblyStyle 列舉

定義

警告

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

表示將在尋找和載入組件的還原序列化 (Deserialization) 期間使用的方法。

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

欄位

Full 1

在完整模式下,還原序列化期間所使用的組件必須完全符合序列化 (Serialization) 期間所使用的組件。 Load 類別的 Assembly 方法可用來載入組件。

Simple 0

在簡單模式下,還原序列化期間所使用的組件無需完全符合序列化期間所使用的組件。 特別是當 LoadWithPartialName 方法用於載入組件時,版本號碼無需相符。

適用於