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)
Syntax
'Declaration
Public Property UseWeakEditLock As Boolean
public bool UseWeakEditLock { get; set; }
public:
property bool UseWeakEditLock {
bool get ();
void set (bool value);
}
member UseWeakEditLock : bool with get, set
function get UseWeakEditLock () : boolean
function set UseWeakEditLock (value : boolean)
Property Value
Type: Boolean
true if the service holds a weak lock, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.