OPC Studio User's Guide and Reference
SourceElement Property



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > EventSource Class : SourceElement Property
The source element (optionally with a type specifier), i.e. the last element of the source path.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<NotNullAttribute()>
<XmlIgnoreAttribute()>
Public Property SourceElement As String
'Usage
 
Dim instance As EventSource
Dim value As String
 
instance.SourceElement = value
 
value = instance.SourceElement
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[NotNull()]
[XmlIgnore()]
public string SourceElement {get; set;}
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[NotNull()]
[XmlIgnore()]
public:
property String^ SourceElement {
   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 source element is empty when the source 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