This documentation is archived and is not being maintained.

SerializationInfo.AssemblyName Property

Gets or sets the assembly name of the type to serialize.

[Visual Basic]
Public Property AssemblyName As String
public string AssemblyName {get; set;}
public: __property String* get_AssemblyName();
public: __property void set_AssemblyName(String*);
public function get AssemblyName() : String;
public function set AssemblyName(String);

Property Value

The full name of the assembly of the type to serialize.


Exception Type Condition
ArgumentNullException The value the property is set to is a null reference (Nothing in Visual Basic).


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. During deserialization, users who implemented ISerializable can compare the version of the assembly with the expected type to ensure that they are deserializing an expected version of 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SerializationInfo Class | SerializationInfo Members | System.Runtime.Serialization Namespace