SetReference Method
- Last UpdatedSep 29, 2026
- 1 minute read
Contains either the fully qualified model hierarchy path for any type of node, or optionally an asset node's associated tagname or hierarchical name.
Setting this property to a non-blank string starts monitoring associated alarms. An adorner appears when required.
Setting this property to a null or empty string stops monitoring associated alarms (if no other adorners are monitoring the same asset), and removes the displayed adorner if it exists.
'Declaration
<SuppressMessageAttribute("Microsoft.Design",
"CA1011:ConsiderPassingBaseTypesAsParameters",
Justification="Only UIElement can be adorned.")>
Public Shared Sub SetReference( _
ByVal element As UIElement, _
ByVal value As String _
)
[SuppressMessage("Microsoft.Design",
"CA1011:ConsiderPassingBaseTypesAsParameters",
Justification="Only UIElement can be adorned.")]
public static void SetReference(
UIElement element,
string value
)
[SuppressMessage("Microsoft.Design",
"CA1011:ConsiderPassingBaseTypesAsParameters",
Justification="Only UIElement can be adorned.")]
public:
static void SetReference(
UIElement^ element,
String^ value
)
Parameters
- element
- The UIElement to be adorned with alarm-related information for the given reference.
- value
- The AlarmAdorner Reference associated with the specified UIElement.
Target Platforms:
- Windows 10 Enterprise, IoT Enterprise 2019 LTSC (1809)
- Windows 10 Enterprise 2021 LTSC (21H2)
- Windows 10 IoT Enterprise (Only) 2021 LTSC (21H2)
- Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2
- Windows Server 2019 LTSC (Datacenter, Essentials, Standard)
- Windows Server IoT 2019 LTSC
- Windows Server 2022 LTSC Standard and Datacenter
- Windows Server 2025 LTSC Standard and Datacenter