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:
property String^ AssemblyName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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

Exception Condition
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.

System_CAPS_cautionCaution

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

.NET Framework
Available since 1.1
Return to top
Show: