Reference
OpcConditionNodeExtension Members
Provides static (Shared in Visual Basic) extension methods to manage OpcConditionNode objects.
Reference
OpcConditionNodeExtension Members
- Type
- OpcConditionNodeExtension
- Namespace
- Opc.UaFx.Server
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Methods
ActivateDialog
Activates the dialog of the conditionNode specified using the further specified context.
public static void ActivateDialog(
this OpcDialogConditionNode conditionNode,
OpcContext context)Public Shared Sub ActivateDialog(
conditionNode As OpcDialogConditionNode,
context As OpcContext)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to respond. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The activate operation failed ( |
ChangeComment
| Overload | Description |
|---|---|
| ChangeComment( | Changes the condition 'Comment' state of the conditionNode specified using the further specified context without raising change events. |
| ChangeComment( | Changes the condition 'Comment' state of the conditionNode specified using the further specified context without raising change events. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeComment(OpcConditionNode, OpcContext, OpcText)
Changes the condition 'Comment' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeComment(
this OpcConditionNode conditionNode,
OpcContext context,
OpcText value)Public Shared Sub ChangeComment(
conditionNode As OpcConditionNode,
context As OpcContext,
value As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | OpcConditionNode | The OpcConditionNode its 'Comment' state is to be changed. |
context | OpcContext | The OpcContext to use to change the state. |
value | OpcText | The new value to use for the 'Comment' state of the conditionNode. |
Remarks
This method uses the Identity to determine the 'ClientUserId' to use after changing the 'Comment' state.
ChangeComment(OpcConditionNode, OpcContext, OpcText, string)
Changes the condition 'Comment' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeComment(
this OpcConditionNode conditionNode,
OpcContext context,
OpcText value,
string clientUserId)Public Shared Sub ChangeComment(
conditionNode As OpcConditionNode,
context As OpcContext,
value As OpcText,
clientUserId As String)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | OpcConditionNode | The OpcConditionNode its 'Comment' state is to be changed. |
context | OpcContext | The OpcContext to use to change the state. |
value | OpcText | The new value to use for the 'Comment' state of the conditionNode. |
clientUserId | String | The identifier to use for the 'ClientUserId' of the condition node after changing the 'Comment' state. |
ChangeIsAcked
Changes the condition 'Acked' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeIsAcked(
this OpcAcknowledgeableConditionNode conditionNode,
OpcContext context,
bool value)Public Shared Sub ChangeIsAcked(
conditionNode As OpcAcknowledgeableConditionNode,
context As OpcContext,
value As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the state. |
value | Boolean | The value true to change the condition 'Acked' state to acknowledged; otherwise the value false. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeIsActive
Changes the condition 'Active' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeIsActive(
this OpcAlarmConditionNode conditionNode,
OpcContext context,
bool value)Public Shared Sub ChangeIsActive(
conditionNode As OpcAlarmConditionNode,
context As OpcContext,
value As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the state. |
value | Boolean | The value true to change the condition 'Active' state to active; otherwise the value false. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeIsConfirmed
Changes the condition 'Confirmed' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeIsConfirmed(
this OpcAcknowledgeableConditionNode conditionNode,
OpcContext context,
bool value)Public Shared Sub ChangeIsConfirmed(
conditionNode As OpcAcknowledgeableConditionNode,
context As OpcContext,
value As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the state. |
value | Boolean | The value true to change the condition 'Confirmed' state to confirmed; otherwise the value false. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeIsEnabled
Changes the condition 'Enabled' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeIsEnabled(
this OpcConditionNode conditionNode,
OpcContext context,
bool value)Public Shared Sub ChangeIsEnabled(
conditionNode As OpcConditionNode,
context As OpcContext,
value As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | OpcConditionNode | The OpcConditionNode its 'Enabled' state is to be changed. |
context | OpcContext | The OpcContext to use to change the state. |
value | Boolean | The value true to change the condition 'Enabled' state to enabled; otherwise the value false. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeIsSuppressed
Changes the condition 'Suppressed' state of the conditionNode specified using the further specified context without raising change events.
public static void ChangeIsSuppressed(
this OpcAlarmConditionNode conditionNode,
OpcContext context,
bool value)Public Shared Sub ChangeIsSuppressed(
conditionNode As OpcAlarmConditionNode,
context As OpcContext,
value As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the state. |
value | Boolean | The value true to change the condition 'Suppressed' state to suppressed; otherwise the value false. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The state change failed ( |
ChangeLimitState
| Overload | Description |
|---|---|
| ChangeLimitState( | Changes the condition current limit alarm state of the conditionNode specified using the further specified context. |
| ChangeLimitState( | Changes the condition current limit alarm state of the conditionNode specified using the further specified context. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The limit alarm state change failed ( |
ChangeLimitState(OpcExclusiveLimitAlarmNode, OpcContext, OpcLimitAlarmStates)
Changes the condition current limit alarm state of the conditionNode specified using the further specified context.
public static void ChangeLimitState(
this OpcExclusiveLimitAlarmNode conditionNode,
OpcContext context,
OpcLimitAlarmStates value)Public Shared Sub ChangeLimitState(
conditionNode As OpcExclusiveLimitAlarmNode,
context As OpcContext,
value As OpcLimitAlarmStates)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the current limit alarm state. |
value | Opc | A value of the Opc |
ChangeLimitState(OpcNonExclusiveLimitAlarmNode, OpcContext, OpcLimitAlarmStates)
Changes the condition current limit alarm state of the conditionNode specified using the further specified context.
public static void ChangeLimitState(
this OpcNonExclusiveLimitAlarmNode conditionNode,
OpcContext context,
OpcLimitAlarmStates value)Public Shared Sub ChangeLimitState(
conditionNode As OpcNonExclusiveLimitAlarmNode,
context As OpcContext,
value As OpcLimitAlarmStates)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the current limit alarm state. |
value | Opc | A value of the Opc |
ChangeSeverity
Changes the condition 'Severity' of the conditionNode specified using the further specified context without raising change events.
public static void ChangeSeverity(
this OpcConditionNode conditionNode,
OpcContext context,
OpcEventSeverity value)Public Shared Sub ChangeSeverity(
conditionNode As OpcConditionNode,
context As OpcContext,
value As OpcEventSeverity)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | OpcConditionNode | The OpcConditionNode its 'Severity' is to be changed. |
context | OpcContext | The OpcContext to use to change the severity. |
value | OpcEventSeverity | The OpcEventSeverity to change to. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The severity change failed ( |
ChangeShelving
| Overload | Description |
|---|---|
| ChangeShelving( | Changes the condition 'Shelving' of the conditionNode specified using the further specified context. |
| ChangeShelving( | Changes the condition 'Shelving' of the conditionNode specified using the further specified context. |
| ChangeShelving( | Changes the condition 'Shelving' of the conditionNode specified using the further specified context. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The shelving change failed ( |
ChangeShelving(OpcAlarmConditionNode, OpcContext, bool)
Changes the condition 'Shelving' of the conditionNode specified using the further specified context.
public static void ChangeShelving(
this OpcAlarmConditionNode conditionNode,
OpcContext context,
bool shelved)Public Shared Sub ChangeShelving(
conditionNode As OpcAlarmConditionNode,
context As OpcContext,
shelved As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the shelving. |
shelved | Boolean | The value true to shelve the condition; otherwise the value false. |
ChangeShelving(OpcAlarmConditionNode, OpcContext, bool, bool)
Changes the condition 'Shelving' of the conditionNode specified using the further specified context.
public static void ChangeShelving(
this OpcAlarmConditionNode conditionNode,
OpcContext context,
bool shelved,
bool oneShot)Public Shared Sub ChangeShelving(
conditionNode As OpcAlarmConditionNode,
context As OpcContext,
shelved As Boolean,
oneShot As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the shelving. |
shelved | Boolean | The value true to shelve the condition; otherwise the value false. |
oneShot | Boolean | The value true if the shelving only applies once; otherwise the value false. |
ChangeShelving(OpcAlarmConditionNode, OpcContext, bool, bool, TimeSpan)
Changes the condition 'Shelving' of the conditionNode specified using the further specified context.
public static void ChangeShelving(
this OpcAlarmConditionNode conditionNode,
OpcContext context,
bool shelved,
bool oneShot,
TimeSpan shelvingTime)Public Shared Sub ChangeShelving(
conditionNode As OpcAlarmConditionNode,
context As OpcContext,
shelved As Boolean,
oneShot As Boolean,
shelvingTime As TimeSpan)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to change the shelving. |
shelved | Boolean | The value true to shelve the condition; otherwise the value false. |
oneShot | Boolean | The value true if the shelving only applies once; otherwise the value false. |
shelvingTime | TimeSpan | The time as long the shelving applies. |
RespondDialog
Changes the dialog response of the conditionNode specified using the further specified context.
public static void RespondDialog(
this OpcDialogConditionNode conditionNode,
OpcContext context,
int response)Public Shared Sub RespondDialog(
conditionNode As OpcDialogConditionNode,
context As OpcContext,
response As Integer)Parameters
| Name | Type | Description |
|---|---|---|
conditionNode | Opc | The Opc |
context | OpcContext | The OpcContext to use to respond. |
response | Int32 | The index of the item in the ResponseOptions. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The conditionNode or context is a null reference ( |
| Invalid | The node has not yet been fully initialized. Call this method after the node has been initialized through CreateNodes. |
| OpcException | The respond operation failed ( |

