Επεξεργασία

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


RootDesignerSerializerAttribute.Reloadable Property

Definition

Gets a value indicating whether the root serializer supports reloading of the design document without first disposing the designer host.

public:
 property bool Reloadable { bool get(); };
public bool Reloadable { get; }
member this.Reloadable : bool
Public ReadOnly Property Reloadable As Boolean

Property Value

true if the root serializer supports reloading; otherwise, false.

Remarks

If this property is set to false, the design document does not automatically perform a reload on behalf of the user. If this property is set to false, it is the user's responsibility to reopen the designer view window for the design document, if an update or reload is desired.

Some serializers require the interaction of external components in the designer loading process in order to rebuild the design document. These serializers sometimes need to create a new designer host each time the design document is loaded. If this is the situation, Reloadable will be set to false, and the designer host must be recreated by user interaction (launching the designer for the document) after the design document is disposed. The events and services that were connected to the designer host, except through deserialization, do not remain and may need to be set again. If Reloadable is true, the design document can be reloaded after changes outside the designer are made to the code, without closing the designer window and reopening it.

Applies to