QuickOPC User's Guide and Reference
SourceComponent Property



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > EventSource Class : SourceComponent Property
The component that is the source of the event.
Syntax
'Declaration
 
<CanBeNullAttribute()> 
<DefaultValueAttribute("")> 
<TypeConverterAttribute(OpcLabs.BaseLib.ComponentModel.Referencing.Internal.AutoExtensibleComponentReferenceConverter`1)> 
Public Property SourceComponent As IComponent
'Usage
 
Dim instance As EventSource
Dim value As IComponent
 
instance.SourceComponent = value
 
value = instance.SourceComponent
[CanBeNull()] 
[DefaultValue("")] 
[TypeConverter(OpcLabs.BaseLib.ComponentModel.Referencing.Internal.AutoExtensibleComponentReferenceConverter`1)] 
public IComponent SourceComponent {get; set;}
[CanBeNull()] 
[DefaultValue("")] 
[TypeConverter(OpcLabs.BaseLib.ComponentModel.Referencing.Internal.AutoExtensibleComponentReferenceConverter`1)] 
public: 
property IComponent^ SourceComponent { 
   IComponent^ get(); 
   void set (    IComponent^ value); 
}
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