This topic has not yet been rated - Rate this topic

SettingsPropertyValue.SerializedValue Property

Gets or sets the serialized value of the SettingsProperty object.

Namespace:  System.Configuration
Assembly:  System (in System.dll)
public Object SerializedValue { get; set; }

Property Value

Type: System.Object
The serialized value of a SettingsProperty object.
ExceptionCondition
ArgumentException

The serialization options for the property indicated the use of a string type converter, but a type converter was not available.

If the SettingsPropertyValue instance detects that the PropertyValue property has changed since the last time the SerializedValue property was called, it will cause PropertyValue property to be converted to its serialized representation. The specific serialization mechanism to be used is defined by the SerializeAs property on the SettingsProperty instance associated with the SettingsPropertyValue instance. The current supported serialization options are to convert the object to a string using a string type converter, serialize using the XmlSerializer, or perform binary serialization.

NoteNote

The underlying serializers may throw exceptions during the serialization process.

The immediate caller code requires the SerializationFormatter permission (one of the permissions available as part of SecurityPermission) to call either the getter or setter for this property. This permission is enforced with a LinkDemand enumeration value.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.