OpcContext Class

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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

C#

public class OpcContext : IOpcNamespaceResolver


Inheritance Object › OpcContext


Derived


Implements IOpcNamespaceResolver

Name Description
Current Gets or sets the OpcContext for the current thread.
Empty Gets an empty OpcContext which can be used in cases there a session nor system specific context is not necessarily required.
Identity Gets the OpcUserIdentity which belongs to the situation represented.
Namespaces Gets a read-only collection of namespaces valid in the current OpcContext.
NodeIdFactory Gets the OpcNodeIdFactory used to create new node identifiers using this context.
Owner Gets the owner of the current OpcContext.
PreferredLocales Gets a collection of preferred locales (see CultureInfo.Name) to use to localize data and information.
SessionId Gets the session identifier which identifies the session within that the context has been created and is valid.
Name Description
Enter(IEnumerable) Enters a new OpcContext using the namespaces specified.
Enter(OpcNamespace) Enters a new OpcContext using the namespaces specified.
GetDataType(OpcEncoding) Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.
GetDataType(OpcName) Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(OpcNodeId) Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified.
GetDataType(String) Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(Type) Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified.
GetDataType(XmlQualifiedName) Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.
GetNodeType(OpcName) Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(OpcNodeId) Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.
GetNodeType(String) Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(Type) Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.
OfNode(OpcNode)