SerializationInfo.AssemblyName SerializationInfo.AssemblyName SerializationInfo.AssemblyName SerializationInfo.AssemblyName Property


仅在序列化期间获取或设置要序列化的类型的程序集名称。Gets or sets the assembly name of the type to serialize during serialization only.

 property System::String ^ AssemblyName { System::String ^ get(); void set(System::String ^ value); };
public string AssemblyName { get; set; }
member this.AssemblyName : string with get, set
Public Property AssemblyName As String


要序列化的类型的程序集的全名。The full name of the assembly of the type to serialize.


该属性的值设置为 nullThe value the property is set to is null.


AssemblyName返回的值相同FullName包含类型的程序集的属性。The AssemblyName is the same as the value returned by FullName property of the assembly of the containing type. 这是格式化程序序列化此对象的类型信息时所使用的程序集名称。This is the assembly name that the formatter uses when serializing type information for this object.

程序集名称包含程序集、 版本、 区域性和有关对象的一些安全信息的名称。The assembly name contains the name of the assembly, version, culture, and some security information about the object.

要更改正在序列化 (例如,若要为特定类型发送代理) 的类型的用户将设置此属性的值。Users who are changing the type being serialized (for example, to send a proxy for a particular type) will set the value of this property.


反序列化过程中使用此属性,因为未定义此属性的值。Do not use this property during deserialization because the value of this property is undefined.