OPC Studio User's Guide and Reference
SynchronizationContext Property



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Widgets Namespace > NotifyingWidget Class : SynchronizationContext Property
Contains synchronization context used by the object when performing asynchronous operations (including event notifications).
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<CanBeNullAttribute()>
<DefaultValueAttribute("")>
<XmlIgnoreAttribute()>
Public Property SynchronizationContext As SynchronizationContext
'Usage
 
Dim instance As NotifyingWidget
Dim value As SynchronizationContext
 
instance.SynchronizationContext = value
 
value = instance.SynchronizationContext
[Browsable(false)]
[CanBeNull()]
[DefaultValue("")]
[XmlIgnore()]
public SynchronizationContext SynchronizationContext {get; set;}
[Browsable(false)]
[CanBeNull()]
[DefaultValue("")]
[XmlIgnore()]
public:
property SynchronizationContext^ SynchronizationContext {
   SynchronizationContext^ get();
   void set (    SynchronizationContext^ value);
}
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also