This documentation is archived and is not being maintained.

SerializationInfo.AssemblyName Property

Gets or sets the assembly name of the type to serialize during serialization only.

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)

public string AssemblyName { get; set; }
/** @property */
public String get_AssemblyName ()

/** @property */
public void set_AssemblyName (String value)

public function get AssemblyName () : String

public function set AssemblyName (value : String)

Not applicable.

Property Value

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

Exception typeCondition

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.

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.

Caution noteCaution:

Do not use this property during deserialization because the value of this property is undefined.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: