Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcContext type exposes the following members.
Gets an empty OpcContext which can be used in cases there a session nor system specific context is not necessarily required.
C#
public static OpcContext Empty { get; }
Property Value
An instance of the OpcContext class without any contextual information.
Gets the OpcUserIdentity which belongs to the situation represented.
C#
public OpcUserIdentity Identity { get; }
Property Value
The OpcUserIdentity which belongs to the situation represented or a null reference (Nothing in Visual Basic) if there is no identity information available.
Gets a read-only collection of namespaces valid in the current OpcContext.
C#
public OpcReadOnlyNamespaceCollection Namespaces { get; }
Property Value
OpcReadOnlyNamespaceCollection
An instance of the OpcReadOnlyNamespaceCollection class with OpcNamespace items for each 'NamespaceUri' used to organize the nodes in an address space.
Gets the OpcNodeIdFactory used to create new node identifiers using this context.
C#
public OpcNodeIdFactory NodeIdFactory { get; }
Property Value
The OpcNodeIdFactory used through this context or a null reference (Nothing in Visual Basic) if there is not node identifier factory associated with this context.
Gets the owner of the current OpcContext.
C#
public IOpcApplicationInstance Owner { get; }
Property Value
An instance implementing the IOpcApplicationInstance interface which has defined the current OpcContext.
Gets a collection of preferred locales (see CultureInfo.Name) to use to localize data and information.
C#
public virtual OpcLocaleCollection PreferredLocales { get; }
Property Value
An instance of the OpcLocaleCollection class with CultureInfo.Names of the cultures to use to localize data and information in order of this OpcContext.