Export (0) Print
Expand All

SerializationInfo.AssemblyName Property

Gets or sets the assembly name of the type to serialize during serizalization 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)

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft