DesignerDocDataService::UseWeakEditLock Property

 

Determines whether the DesignerDocDataService instance holds a weak or strong edit lock on the child documents. The default value is false (strong edit lock). Normal designers in document windows should use strong edit lock. Advanced invisible designers should use weak locks, so that when the child document is opened in a visible editor, the control of the edit lock is yielded to the visible editor. The user is then prompted to save the document when the visible editor is closed.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
property bool UseWeakEditLock {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the service holds a weak lock, otherwise false.

Return to top
Show: