FormatterAssemblyStyle FormatterAssemblyStyle FormatterAssemblyStyle FormatterAssemblyStyle Enum

定义

指示将在反序列化期间用于定位和加载程序集的方法。Indicates the method that will be used during deserialization for locating and loading assemblies.

public enum class FormatterAssemblyStyle
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum FormatterAssemblyStyle
type FormatterAssemblyStyle = 
Public Enum FormatterAssemblyStyle
继承
FormatterAssemblyStyleFormatterAssemblyStyleFormatterAssemblyStyleFormatterAssemblyStyle
属性

字段

Full Full Full Full 1

在完全模式下,反序列化期间所用的程序集必须与序列化期间所用的程序集完全匹配。In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. 使用 Assembly 类的 Load 方法加载程序集。The Load method of the Assembly class is used to load the assembly.

Simple Simple Simple Simple 0

在简单模式下,反序列化期间所用的程序集不需要与序列化期间所用的程序集完全匹配。In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. 具体而言,当 LoadWithPartialName 方法用于加载程序集时,版本号不需要匹配。Specifically, the version numbers need not match as the LoadWithPartialName method is used to load the assembly.

适用于