Export (0) Print
Expand All

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 Value

Type: System.String
The full name of the assembly of the type to serialize.

ExceptionCondition
ArgumentNullException

The value the property is set to is null.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft