OPC Studio User's Guide and Reference
TargetComponent Property



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

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