NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

InheritedPropertyDescriptor.ShouldPersistValue

Indicates whether the value of this property needs to be persisted. In other words, it indicates whether the state of the property is distinct from when the component is first instantiated. If there is a default value specified in this PropertyDescriptor, it will be compared against the property's current value to determine this. If there is't, the shouldPersistXXX method is looked for and invoked if found. If both these routes fail, true will be returned. If this returns false, a tool should not persist this property's value.

[Visual Basic]
Overrides Public Function ShouldPersistValue( _
   ByVal component As Object _
) As Boolean
[C#]
public override bool ShouldPersistValue(
   object component
);
[C++]
public: override bool ShouldPersistValue(
   Object* component
);
[JScript]
public override function ShouldPersistValue(
   component : Object
) : Boolean;

Parameters

component
who's property should be examined for persistance.

Return Value

whether the property should be persisted.

See Also

InheritedPropertyDescriptor Class | InheritedPropertyDescriptor Members | System.ComponentModel.Design Namespace