XmlStore.SynchronizingObject Property
Gets or sets the ISynchronizeInvoke object.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Syntax
public abstract ISynchronizeInvoke SynchronizingObject { get; set; }
public:
property ISynchronizeInvoke^ SynchronizingObject {
virtual ISynchronizeInvoke^ get() abstract;
virtual void set(ISynchronizeInvoke^ value) abstract;
}
abstract SynchronizingObject : ISynchronizeInvoke with get, set
Public MustOverride Property SynchronizingObject As ISynchronizeInvoke
Property Value
Type: System.ComponentModel.ISynchronizeInvoke
The ISynchronizeInvoke object.
Remarks
When this property is set, the EditingScopeCompleted and UndoRedoCompleted events will be marshaled to the UI thread via this synchronizing object. This can be a Windows Forms control object and the result is that the XmlStore will use this object to ensure that the event arrives on the UI thread so you can safely make UI updates in your event handler without having to marshal the event yourself.
See Also
XmlStore Class
Microsoft.VisualStudio.XmlEditor Namespace
Return to top