Reference
OpcTwoStateDiscreteNode Members
Defines a two state discrete node.
Reference
OpcTwoStateDiscreteNode Members
- Type
- OpcTwoStateDiscreteNode
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Inherits members from OpcDiscreteItemNode<Boolean>, OpcDataItemNode, OpcVariableNode, OpcInstanceNode, OpcNode.
Constructors
OpcTwoStateDiscreteNode
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcname specified. |
| Opc | Initializes a new instance of the Opcname specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname and id specified. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname specified with the initial value defined by value as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value defined by value as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
| Opc | Initializes a new instance of the Opcname specified. |
| Opc | Initializes a new instance of the Opcname specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname and id specified. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname specified with the initial value defined by value as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value defined by value as a child node of the parent node given. |
OpcTwoStateDiscreteNode(OpcName)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.
public OpcTwoStateDiscreteNode(OpcName name)Public Sub New(name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
OpcTwoStateDiscreteNode(OpcName, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value given by value.
public OpcTwoStateDiscreteNode(OpcName name, object value)Public Sub New(name As OpcName, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified.
public OpcTwoStateDiscreteNode(OpcName name, OpcNodeId id)Public Sub New(name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
OpcTwoStateDiscreteNode(OpcName, OpcNodeId, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value given by value.
public OpcTwoStateDiscreteNode(OpcName name, OpcNodeId id, object value)Public Sub New(name As OpcName, id As OpcNodeId, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(IOpcNode, OpcName)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified as a child node of the parent node given.
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name)Public Sub New(parent As IOpcNode, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
OpcTwoStateDiscreteNode(IOpcNode, OpcName, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name, object value)Public Sub New(parent As IOpcNode, name As OpcName, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(IOpcNode, OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified as a child node of the parent node given.
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name, OpcNodeId id)Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
OpcTwoStateDiscreteNode(IOpcNode, OpcName, OpcNodeId, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
public OpcTwoStateDiscreteNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
object value)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(TwoStateDiscreteState)
Initializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.
protected OpcTwoStateDiscreteNode(TwoStateDiscreteState content)Protected Sub New(content As TwoStateDiscreteState)Parameters
| Name | Type | Description |
|---|---|---|
content | Two | The Two |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
OpcTwoStateDiscreteNode(TwoStateDiscreteState, OpcNodeModel)
Initializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.
protected OpcTwoStateDiscreteNode(
TwoStateDiscreteState content,
OpcNodeModel model)Protected Sub New(content As TwoStateDiscreteState, model As OpcNodeModel)Parameters
| Name | Type | Description |
|---|---|---|
content | Two | The Two |
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.
protected OpcTwoStateDiscreteNode(OpcNodeModel model, OpcName name)Protected Sub New(model As OpcNodeModel, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value given by value.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
OpcName name,
object value)Protected Sub New(model As OpcNodeModel, name As OpcName, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
OpcName name,
OpcNodeId id)Protected Sub New(model As OpcNodeModel, name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value given by value.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
OpcName name,
OpcNodeId id,
object value)Protected Sub New(
model As OpcNodeModel,
name As OpcName,
id As OpcNodeId,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified as a child node of the parent node given.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name)Protected Sub New(model As OpcNodeModel, parent As IOpcNode, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name,
object value)Protected Sub New(
model As OpcNodeModel,
parent As IOpcNode,
name As OpcName,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
value | Object | The initial value of the new two state discrete node. |
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified as a child node of the parent node given.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name,
OpcNodeId id)Protected Sub New(
model As OpcNodeModel,
parent As IOpcNode,
name As OpcName,
id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, object)
Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
protected OpcTwoStateDiscreteNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name,
OpcNodeId id,
object value)Protected Sub New(
model As OpcNodeModel,
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
value As Object)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state discrete node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state discrete node can be identified and accessed. |
value | Object | The initial value of the new two state discrete node. |
Properties
DefaultTypeDefinitionId
Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
protected override OpcNodeId DefaultTypeDefinitionId { get; }Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeIdProperty value
The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).
Overrides
FalseState
Gets or sets the localized text to be associated with this OpcTwoStateDiscreteNode when its Value is false. This is typically used for a contact when it is in the open (zero) state.
public OpcText FalseState { get; set; }Public Property FalseState As OpcTextProperty value
An instance of the OpcText class which provides the localized text for the false state.
FalseStateNode
Gets the OpcTextPropertyNode of the FalseState property.
public OpcTextPropertyNode FalseStateNode { get; }Public ReadOnly Property FalseStateNode As OpcTextPropertyNodeProperty value
An instance of the OpcTextPropertyNode class.
TrueState
Gets or sets the localized text to be associated with this OpcTwoStateDiscreteNode when its Value is true. This is typically used for a contact when it is in the closed (non-zero) state.
public OpcText TrueState { get; set; }Public Property TrueState As OpcTextProperty value
An instance of the OpcText class which provides the localized text for the true state.
TrueStateNode
Gets the OpcTextPropertyNode of the TrueState property.
public OpcTextPropertyNode TrueStateNode { get; }Public ReadOnly Property TrueStateNode As OpcTextPropertyNodeProperty value
An instance of the OpcTextPropertyNode class.

