Skip to content

Reference

OpcContext Class

Provides information and services about the system which belong to the current situation (process, thread, session, etc.).

Reference

OpcContext Class ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcContext Members
Also in
Opc.UaFx.Client

Provides information and services about the system which belong to the current situation (process, thread, session, etc.).

Syntax ​

csharp
public class OpcContext
vbnet
Public Class OpcContext

Inheritance ​

Object → OpcContext

Implements ​

Derived types ​

Properties ​

NameDescription
Currentstatic · since v2.50Gets or sets the OpcContext for the current thread.
Emptystatic · since v2.9Gets an empty OpcContext which can be used in cases there a session nor system specific context is not necessarily required.
IdentityGets the OpcUserIdentity which belongs to the situation represented.
Namespacessince v2.12Gets a read-only collection of namespaces valid in the current OpcContext.
NodeIdFactoryGets the OpcNodeIdFactory used to create new node identifiers using this context.
Ownersince v2.11Gets the owner of the current OpcContext.
PreferredLocalesvirtual · since v2.11Gets a collection of preferred locales (see Name) to use to localize data and information.
SessionIdvirtualGets the session identifier which identifies the session within that the context has been created and is valid.

Methods ​

NameDescription
Enterstatic · 2 overloads · since v2.40Enters a new OpcContext using the namespaces specified.
GetDataType6 overloads · since v2.22Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetNodeType4 overloads · since v2.50Retrieves the OpcNodeTypeInfo object which is known under the name specified.
OfNodesince v2.50Creates a context for the node specified which uses the information of the current OpcContext.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59