OPC Studio User's Guide and Reference
TargetElement Property



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > ValueTarget Class : TargetElement Property
The target element (optionally with a type specifier), i.e. the last element of the target path.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<NotNullAttribute()>
<XmlIgnoreAttribute()>
Public Property TargetElement As String
'Usage
 
Dim instance As ValueTarget
Dim value As String
 
instance.TargetElement = value
 
value = instance.TargetElement
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[NotNull()]
[XmlIgnore()]
public string TargetElement {get; set;}
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[NotNull()]
[XmlIgnore()]
public:
property String^ TargetElement {
   String^ get();
   void set (    String^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is "" (String.Empty).

Remarks
The target element is empty when the target path is empty.
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