Skip to content

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 ​

18 overloads

OverloadDescription
OpcTwoStateDiscreteNode(OpcName)Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.
OpcTwoStateDiscreteNode(OpcName, object)Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value given by value.
OpcTwoStateDiscreteNode(OpcName, OpcNodeId)Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified.
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.
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.
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.
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.
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.
OpcTwoStateDiscreteNode(TwoStateDiscreteState)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.
OpcTwoStateDiscreteNode(TwoStateDiscreteState, OpcNodeModel)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, object)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value given by value.
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified.
OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId, object)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value given by value.
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified as a child node of the parent node given.
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, object)protectedInitializes 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.
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified as a child node of the parent node given.
OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, object)protectedInitializes 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.

OpcTwoStateDiscreteNode(OpcName) ​

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.

csharp
public OpcTwoStateDiscreteNode(OpcName name)
vbnet
Public Sub New(name As OpcName)

Parameters

NameTypeDescription
nameOpcNameThe 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.

csharp
public OpcTwoStateDiscreteNode(OpcName name, object value)
vbnet
Public Sub New(name As OpcName, value As Object)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
valueObjectThe 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.

csharp
public OpcTwoStateDiscreteNode(OpcName name, OpcNodeId id)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe 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.

csharp
public OpcTwoStateDiscreteNode(OpcName name, OpcNodeId id, object value)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, value As Object)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.
valueObjectThe 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.

csharp
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe 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.

csharp
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name, object value)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, value As Object)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
valueObjectThe 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.

csharp
public OpcTwoStateDiscreteNode(IOpcNode parent, OpcName name, OpcNodeId id)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe 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.

csharp
public OpcTwoStateDiscreteNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.
valueObjectThe initial value of the new two state discrete node.

OpcTwoStateDiscreteNode(TwoStateDiscreteState) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.

csharp
protected OpcTwoStateDiscreteNode(TwoStateDiscreteState content)
vbnet
Protected Sub New(content As TwoStateDiscreteState)

Parameters

NameTypeDescription
contentTwoStateDiscreteStateThe TwoStateDiscreteState to wrap.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

OpcTwoStateDiscreteNode(TwoStateDiscreteState, OpcNodeModel) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class using the content as the instance to wrap.

csharp
protected OpcTwoStateDiscreteNode(
    TwoStateDiscreteState content,
    OpcNodeModel model)
vbnet
Protected Sub New(content As TwoStateDiscreteState, model As OpcNodeModel)

Parameters

NameTypeDescription
contentTwoStateDiscreteStateThe TwoStateDiscreteState to wrap.
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

OpcTwoStateDiscreteNode(OpcNodeModel, OpcName) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified.

csharp
protected OpcTwoStateDiscreteNode(OpcNodeModel model, OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.

OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, object) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified with the initial value given by value.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    OpcName name,
    object value)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, value As Object)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
valueObjectThe initial value of the new two state discrete node.

OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    OpcName name,
    OpcNodeId id)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.

OpcTwoStateDiscreteNode(OpcNodeModel, OpcName, OpcNodeId, object) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified with the initial value given by value.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.
valueObjectThe initial value of the new two state discrete node.

OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name specified as a child node of the parent node given.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.

OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, object) ​

protected

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.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    value As Object)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
valueObjectThe initial value of the new two state discrete node.

OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcTwoStateDiscreteNode class accessible by the name and id specified as a child node of the parent node given.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.

OpcTwoStateDiscreteNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId, object) ​

protected

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.

csharp
protected OpcTwoStateDiscreteNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    object value)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As Object)

Parameters

NameTypeDescription
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new two state discrete node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state discrete node can be identified and accessed.
valueObjectThe initial value of the new two state discrete node.

Properties ​

DefaultTypeDefinitionId ​

protected · override

Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.

csharp
protected override OpcNodeId DefaultTypeDefinitionId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeId

Property value

OpcNodeId

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

DefaultTypeDefinitionId

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.

csharp
public OpcText FalseState { get; set; }
vbnet
Public Property FalseState As OpcText

Property value

OpcText

An instance of the OpcText class which provides the localized text for the false state.

FalseStateNode ​

Gets the OpcTextPropertyNode of the FalseState property.

csharp
public OpcTextPropertyNode FalseStateNode { get; }
vbnet
Public ReadOnly Property FalseStateNode As OpcTextPropertyNode

Property value

OpcTextPropertyNode

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.

csharp
public OpcText TrueState { get; set; }
vbnet
Public Property TrueState As OpcText

Property value

OpcText

An instance of the OpcText class which provides the localized text for the true state.

TrueStateNode ​

Gets the OpcTextPropertyNode of the TrueState property.

csharp
public OpcTextPropertyNode TrueStateNode { get; }
vbnet
Public ReadOnly Property TrueStateNode As OpcTextPropertyNode

Property value

OpcTextPropertyNode

An instance of the OpcTextPropertyNode class.