Επεξεργασία

Κοινή χρήση μέσω


SettingsPropertyValue.SerializedValue Property

Definition

Gets or sets the serialized value of the SettingsProperty object.

public:
 property System::Object ^ SerializedValue { System::Object ^ get(); void set(System::Object ^ value); };
public object SerializedValue { get; set; }
member this.SerializedValue : obj with get, set
Public Property SerializedValue As Object

Property Value

The serialized value of a SettingsProperty object.

Exceptions

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

Remarks

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.

Note

The underlying serializers may throw exceptions during the serialization process.

Applies to