Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcDialogCondition type exposes the following members.
Initializes a new instance of the OpcDialogCondition class using the dataStore
specified.
C#
public OpcDialogCondition(IOpcReadOnlyNodeDataStore dataStore)
Parameters
dataStore
IOpcReadOnlyNodeDataStore
The IOpcReadOnlyNodeDataStore of the 'Opc.UaFx.OpcDialogConditionNode' to represent.
Exceptions
The dataStore
is a null reference (Nothing in Visual Basic).
Gets a value which defines the index of the response in the ResponseOptions array that will cause the dialog to go into the inactive state without proceeding with the operation described by the prompt.
C#
public int CancelResponse { get; }
Property Value
The value allows a client to identify the Cancel option if a special handling for this option is available. If no Cancel option is available the value is -1. For more information 'Opc.UaFx.OpcDialogConditionNode.CancelResponse'.
Gets a value which identifies the response option that should be shown as default to the user.
C#
public int DefaultResponse { get; }
Property Value
The index to an item in the ResponseOptions array. If no response option is the default, the value is -1. For more information see 'Opc.UaFx.OpcDialogConditionNode.DefaultResponse'.
Gets a value indicating whether the dialog is active and is waiting for a response.
C#
public bool IsActive { get; }
Property Value
A value indicating whether the dialog is active and is waiting for a response. For more information see 'Opc.UaFx.OpcDialogConditionNode.IsActive'.
Gets a value which defines the last response provided by a client in the respond method.
C#
public int LastResponse { get; }
Property Value
The index to an item in the ResponseOptions array. If no previous response exists then the value is -1. For more information see 'Opc.UaFx.OpcDialogConditionNode.LastResponse'.
Gets a value which defines the index of the OK option in the ResponseOptions array.
C#
public int OkResponse { get; }
Property Value
This choice is the response that will allow the system to proceed with the operation described by the prompt. If no OK option is available the value is -1. For more information see 'Opc.UaFx.OpcDialogConditionNode.OkResponse'.
Gets the dialog prompt to be shown to the user.
C#
public OpcText Prompt { get; }
Property Value
The message to be shown to the user. For more information see 'Opc.UaFx.OpcDialogConditionNode.Prompt'.
Gets an array of supported response options.
C#
public OpcText[] ResponseOptions { get; }
Property Value
OpcText[]
An array of supported response options. The index in this array is used for the corresponding properties like DefaultResponse, LastResponse and the selected response in the respond method. For more information see 'Opc.UaFx.OpcDialogConditionNode.ResponseOptions'.