OPC Studio 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()> 
<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()] 
[TypeConverter(OpcLabs.BaseLib.ComponentModel.Referencing.Internal.AutoExtensibleComponentReferenceConverter`1)] 
public IComponent SourceComponent {get; set;}
[CanBeNull()] 
[TypeConverter(OpcLabs.BaseLib.ComponentModel.Referencing.Internal.AutoExtensibleComponentReferenceConverter`1)] 
public: 
property IComponent^ SourceComponent { 
   IComponent^ get(); 
   void set (    IComponent^ value); 
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

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