Reference
OpcNodeSet Members
Provides a static in-memory representation of an address space including its nodes their references to each other and the used types.
Reference
OpcNodeSet Members
- Type
- OpcNodeSet
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Properties
Context
Gets the OpcContext used for this OpcNodeSet.
public OpcContext Context { get; }Public ReadOnly Property Context As OpcContextProperty value
A OpcContext used to create this OpcNodeSet or a null reference (Nothing in Visual Basic) if this OpcNodeSet has been created without any specific OpcContext.
LastModified
Gets the last time the node set document was modified.
public DateTime? LastModified { get; }Public ReadOnly Property LastModified As Date?Property value
The last time the node set document was modified or a null reference (Nothing in Visual Basic) if there is no time of the last modification available.
Remarks
The value of this property is primarly determined by the contents of the node set document the current OpcNodeSet originates from. In case there the node set document does not provide the last modified information this property represents the LastWriteTime in case there the node set has been created from a file; otherwise a null reference (Nothing in Visual Basic).
Models
Gets a read-only collection of the models declared by the node set.
public OpcReadOnlyModelCollection Models { get; }Public ReadOnly Property Models As OpcReadOnlyModelCollectionProperty value
An instance of the OpcReadOnlyModelCollection class with an OpcModel for each model declared by the current OpcNodeSet; empty if it declares no model.
Name
Gets the name of the node set.
public string Name { get; }Public ReadOnly Property Name As StringProperty value
The Name of the first model declared by the current OpcNodeSet (see Models). In case there it declares no model with a name and the OpcNodeSet has been created from a file, the name of the file without extension; otherwise a null reference (Nothing in Visual Basic).
Namespaces
Gets a read-only collection of OpcNamespaces referred to.
public OpcReadOnlyNamespaceCollection Namespaces { get; }Public ReadOnly Property Namespaces As OpcReadOnlyNamespaceCollectionProperty value
OpcReadOnlyNamespaceCollection
An instance of the OpcReadOnlyNamespaceCollection class with the OpcNamespace information used by the current OpcNodeSet.
Methods
GetDataType
| Overload | Description |
|---|---|
| GetDataType( | Retrieves the OpcDataTypeInfo object which is known under the name specified. |
| GetDataType( | Retrieves the OpcDataTypeInfo object which is known under the name specified. |
| GetDataType( | Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified. |
| GetDataType( | Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified. |
| GetDataType( | Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified. |
| GetDataType( | Retrieves the OpcDataTypeInfo object which is known under the xmlName specified. |
GetDataType(string)
Retrieves the OpcDataTypeInfo object which is known under the name specified.
public OpcDataTypeInfo GetDataType(string name)Public Function GetDataType(name As String) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
name | String | The string to use to identify the OpcDataTypeInfo object to retrieve. |
Returns
The OpcDataTypeInfo object its Name is equals (regarding its Value) to the name specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Empty. |
| Argument | The name is a null reference ( |
GetDataType(OpcName)
Retrieves the OpcDataTypeInfo object which is known under the name specified.
public OpcDataTypeInfo GetDataType(OpcName name)Public Function GetDataType(name As OpcName) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName of the OpcDataTypeInfo object to retrieve. |
Returns
The OpcDataTypeInfo object its Name is equals to the name specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is a null reference ( |
GetDataType(OpcNodeId)
Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified.
public OpcDataTypeInfo GetDataType(OpcNodeId typeId)Public Function GetDataType(typeId As OpcNodeId) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
typeId | OpcNodeId | The OpcNodeId which identifies the OpcDataTypeInfo to retrieve. |
Returns
The OpcDataTypeInfo object which is known under the typeId specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcDataTypeInfo object which is associated with the typeId specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The typeId is a null reference ( |
GetDataType(Type)
Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified.
public OpcDataTypeInfo GetDataType(Type underlyingType)Public Function GetDataType(underlyingType As Type) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
underlyingType | Type | The Type which implements the OpcDataTypeInfo to retrieve. |
Returns
The OpcDataTypeInfo object which declares the underlyingType specified or a null reference (Nothing in Visual Basic) if there isn't a OpcDataTypeInfo object associated with the underlyingType specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The underlyingType is a null reference ( |
GetDataType(OpcEncoding)
Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.
public OpcDataTypeInfo GetDataType(OpcEncoding encoding)Public Function GetDataType(encoding As OpcEncoding) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
encoding | OpcEncoding | The OpcEncoding which identifies the OpcDataTypeInfo to retrieve. |
Returns
The OpcDataTypeInfo object which is known under the encoding specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcDataTypeInfo which is associated with the encoding specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The encoding is a null reference ( |
GetDataType(XmlQualifiedName)
Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.
public OpcDataTypeInfo GetDataType(XmlQualifiedName xmlName)Public Function GetDataType(xmlName As XmlQualifiedName) As OpcDataTypeInfoParameters
| Name | Type | Description |
|---|---|---|
xmlName | XmlQualifiedName | The XmlQualifiedName of the OpcDataTypeInfo object to retrieve. |
Returns
The OpcDataTypeInfo object its XmlName is equals to the xmlName specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The xmlName is a null reference ( |
GetDataTypes
Retrieves all OpcDataTypeInfo objects offered by the IOpcTypeProvider.
public OpcDataTypeInfo[] GetDataTypes()Public Function GetDataTypes() As OpcDataTypeInfo()Returns
An array that contains all OpcDataTypeInfo objects that are offered by the IOpcTypeProvider.
GetDataTypeSystem
| Overload | Description |
|---|---|
| Get | Retrieves the system used to describe the data types defined in the OpcNodeSet using Binary as the type of encoding. |
| Get | Retrieves the system used to describe the data types defined in the OpcNodeSet using OpcEncodingType specified by encodingType as the type of encoding. |
GetDataTypeSystem()
Retrieves the system used to describe the data types defined in the OpcNodeSet using Binary as the type of encoding.
public OpcDataTypeSystem GetDataTypeSystem()Public Function GetDataTypeSystem() As OpcDataTypeSystemReturns
An instance of the OpcDataTypeSystem class which can be used to understand the structure of the data described for the Binary encoding.
GetDataTypeSystem(OpcEncodingType)
Retrieves the system used to describe the data types defined in the OpcNodeSet using OpcEncodingType specified by encodingType as the type of encoding.
public OpcDataTypeSystem GetDataTypeSystem(OpcEncodingType encodingType)Public Function GetDataTypeSystem(
encodingType As OpcEncodingType) As OpcDataTypeSystemParameters
| Name | Type | Description |
|---|---|---|
encodingType | OpcEncodingType |
Returns
An instance of the OpcDataTypeSystem class which can be used to understand the structure of the data described for the encoding specified.
GetNode
Retrieves the IOpcNodeInfo which is defined within this OpcNodeSet and is known under the nodeId specified.
public IOpcNodeInfo GetNode(OpcNodeId nodeId)Public Function GetNode(nodeId As OpcNodeId) As IOpcNodeInfoParameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The OpcNodeId of the IOpcNodeInfo instance to determine. |
Returns
An instance implementing the IOpcNodeInfo interface its Id attribute is equals to the nodeId specified if found; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The nodeId is a null reference ( |
GetNodes
Retrieves a sequence of IOpcNodeInfo of all nodes defined within this OpcNodeSet.
public IEnumerable<IOpcNodeInfo> GetNodes()Public Function GetNodes() As IEnumerable(Of IOpcNodeInfo)Returns
An IEnumerable<T> of instances implementing the IOpcNodeInfo interface.
GetNodeType
| Overload | Description |
|---|---|
| GetNodeType( | Retrieves the OpcNodeTypeInfo object which is known under the name specified. |
| GetNodeType( | Retrieves the OpcNodeTypeInfo object which is known under the name specified. |
| GetNodeType( | Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified. |
| GetNodeType( | Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified. |
GetNodeType(string)
Retrieves the OpcNodeTypeInfo object which is known under the name specified.
public OpcNodeTypeInfo GetNodeType(string name)Public Function GetNodeType(name As String) As OpcNodeTypeInfoParameters
| Name | Type | Description |
|---|---|---|
name | String | The string to use to identify the OpcNodeTypeInfo object to retrieve. |
Returns
The OpcNodeTypeInfo object its Name is equals (regarding its Value) to the name specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is equals Empty. |
| Argument | The name is a null reference ( |
GetNodeType(OpcName)
Retrieves the OpcNodeTypeInfo object which is known under the name specified.
public OpcNodeTypeInfo GetNodeType(OpcName name)Public Function GetNodeType(name As OpcName) As OpcNodeTypeInfoParameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName of the OpcNodeTypeInfo object to retrieve. |
Returns
The OpcNodeTypeInfo object its Name is equals to the name specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The name is a null reference ( |
GetNodeType(OpcNodeId)
Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.
public OpcNodeTypeInfo GetNodeType(OpcNodeId typeId)Public Function GetNodeType(typeId As OpcNodeId) As OpcNodeTypeInfoParameters
| Name | Type | Description |
|---|---|---|
typeId | OpcNodeId | The OpcNodeId which identifies the OpcNodeTypeInfo to retrieve. |
Returns
The OpcNodeTypeInfo object which is known under the typeId specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcNodeTypeInfo object which is associated with the typeId specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The typeId is a null reference ( |
GetNodeType(Type)
Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.
public OpcNodeTypeInfo GetNodeType(Type underlyingType)Public Function GetNodeType(underlyingType As Type) As OpcNodeTypeInfoParameters
| Name | Type | Description |
|---|---|---|
underlyingType | Type | The Type which implements the OpcNodeTypeInfo to retrieve. |
Returns
The OpcNodeTypeInfo object which declares the underlyingType specified or a null reference (Nothing in Visual Basic) if there isn't a OpcNodeTypeInfo object associated with the underlyingType specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The underlyingType is a null reference ( |
GetNodeTypes
Retrieves all OpcNodeTypeInfo objects offered by the IOpcTypeProvider.
public OpcNodeTypeInfo[] GetNodeTypes()Public Function GetNodeTypes() As OpcNodeTypeInfo()Returns
An array that contains all OpcNodeTypeInfo objects that are offered by the IOpcTypeProvider.
GetNodeTypeSystem
Retrieves the system used to describe the node types defined in the OpcNodeSet.
public OpcNodeTypeSystem GetNodeTypeSystem()Public Function GetNodeTypeSystem() As OpcNodeTypeSystemReturns
An instance of the OpcNodeTypeSystem class which can be used to understand the structure of the nodes defined.
Load
| Overload | Description |
|---|---|
| Load( | Creates a new OpcNodeSet instance from the file specified by filePath. |
| Load( | Creates a new OpcNodeSet instance within the context from the file specified by filePath. |
| Load( | Creates a new OpcNodeSet instance from the file specified by filePath using the further defined load options. |
| Load( | Creates a new OpcNodeSet instance within the context from the file specified by filePath using the further defined load options. |
| Load( | Creates a new OpcNodeSet instance from the contents in the stream specified. |
| Load( | Creates a new OpcNodeSet instance within the context from the contents in the stream specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The node set specified does not provide any namespace information. |
Load(string)
Creates a new OpcNodeSet instance from the file specified by filePath.
public static OpcNodeSet Load(string filePath)Public Shared Function Load(filePath As String) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
filePath | String | The path to the file from which the OpcNodeSet is to be created. |
Returns
A new instance of the OpcNodeSet class that represents the contents of the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The filePath is a null reference ( |
Load(OpcContext, string)
Creates a new OpcNodeSet instance within the context from the file specified by filePath.
public static OpcNodeSet Load(OpcContext context, string filePath)Public Shared Function Load(
context As OpcContext,
filePath As String) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to load the OpcNodeSet. |
filePath | String | The path to the file from which the OpcNodeSet is to be created. |
Returns
A new instance of the OpcNodeSet class that represents the contents of the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The context or filePath is a null reference ( |
Load(string, OpcNodeSetLoadOptions)
Creates a new OpcNodeSet instance from the file specified by filePath using the further defined load options.
public static OpcNodeSet Load(string filePath, OpcNodeSetLoadOptions options)Public Shared Function Load(
filePath As String,
options As OpcNodeSetLoadOptions) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
filePath | String | The path to the file from which the OpcNodeSet is to be created. |
options | Opc | A combination of different Opc |
Returns
A new instance of the OpcNodeSet class that represents the contents of the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The filePath is a null reference ( |
Load(OpcContext, string, OpcNodeSetLoadOptions)
Creates a new OpcNodeSet instance within the context from the file specified by filePath using the further defined load options.
public static OpcNodeSet Load(
OpcContext context,
string filePath,
OpcNodeSetLoadOptions options)Public Shared Function Load(
context As OpcContext,
filePath As String,
options As OpcNodeSetLoadOptions) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to load the OpcNodeSet. |
filePath | String | The path to the file from which the OpcNodeSet is to be created. |
options | Opc | A combination of different Opc |
Returns
A new instance of the OpcNodeSet class that represents the contents of the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The context or filePath is a null reference ( |
Load(Stream)
Creates a new OpcNodeSet instance from the contents in the stream specified.
public static OpcNodeSet Load(Stream stream)Public Shared Function Load(stream As Stream) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
stream | Stream | The Stream which contains the data from which the OpcNodeSet is to be created. |
Returns
A new instance of the OpcNodeSet class that represents the contents of the stream.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The stream is a null reference ( |
Load(OpcContext, Stream)
Creates a new OpcNodeSet instance within the context from the contents in the stream specified.
public static OpcNodeSet Load(OpcContext context, Stream stream)Public Shared Function Load(
context As OpcContext,
stream As Stream) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to load the OpcNodeSet. |
stream | Stream | The Stream which contains the data from which the OpcNodeSet is to be created. |
Returns
A new instance of the OpcNodeSet class that represents the contents of the stream.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or stream is a null reference ( |
Parse
| Overload | Description |
|---|---|
| Parse( | Creates a new OpcNodeSet instance from the string specified by data. |
| Parse( | Creates a new OpcNodeSet instance within the context from the string specified by data. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The data is an empty string. |
| Argument | The data is a null reference ( |
| Invalid | The node set specified does not provide any namespace information. |
Parse(string)
Creates a new OpcNodeSet instance from the string specified by data.
public static OpcNodeSet Parse(string data)Public Shared Function Parse(data As String) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
data | String | The string that contains the node set data. |
Returns
Parse(OpcContext, string)
Creates a new OpcNodeSet instance within the context from the string specified by data.
public static OpcNodeSet Parse(OpcContext context, string data)Public Shared Function Parse(
context As OpcContext,
data As String) As OpcNodeSetParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to load the OpcNodeSet. |
data | String | The string that contains the node set data. |
Returns
Save
| Overload | Description |
|---|---|
| Save( | Writes this OpcNodeSet as a node set XML document to the file specified by the filePath. |
| Save( | Writes this OpcNodeSet as a node set XML document to the stream specified. |
Save(string)
Writes this OpcNodeSet as a node set XML document to the file specified by the filePath.
public void Save(string filePath)Public Sub Save(filePath As String)Parameters
| Name | Type | Description |
|---|---|---|
filePath | String | The path to the file this OpcNodeSet is to be written to. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The filePath is a null reference ( |
Remarks
An existing file is overwritten.
Save(Stream)
Writes this OpcNodeSet as a node set XML document to the stream specified.
public void Save(Stream stream)Public Sub Save(stream As Stream)Parameters
| Name | Type | Description |
|---|---|---|
stream | Stream | The Stream this OpcNodeSet is to be written to. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The stream is a null reference ( |
TryParse
| Overload | Description |
|---|---|
| TryParse( | Determines whether a string is a valid OpcNodeSet. |
| TryParse( | Determines whether a string within the context is a valid OpcNodeSet. |
TryParse(string, out OpcNodeSet)
Determines whether a string is a valid OpcNodeSet.
public static bool TryParse(string data, out OpcNodeSet nodeSet)Public Shared Function TryParse(
data As String,
nodeSet As OpcNodeSet) As BooleanParameters
| Name | Type | Description |
|---|---|---|
data | String | The string to validate. |
nodeSet | out OpcNodeSet | The OpcNodeSet version of the string. |
Returns
The value true if the specified data is a valid OpcNodeSet; otherwise the value false.
TryParse(OpcContext, string, out OpcNodeSet)
Determines whether a string within the context is a valid OpcNodeSet.
public static bool TryParse(
OpcContext context,
string data,
out OpcNodeSet nodeSet)Public Shared Function TryParse(
context As OpcContext,
data As String,
nodeSet As OpcNodeSet) As BooleanParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to load the OpcNodeSet. |
data | String | The string to validate. |
nodeSet | out OpcNodeSet | The OpcNodeSet version of the string. |
Returns
The value true if the specified data is a valid OpcNodeSet; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |

