Reference
SafeOpcFileHandle Members
Represents a wrapper class for a OPC UA file handle.
Reference
SafeOpcFileHandle Members
- Type
- SafeOpcFileHandle
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from SafeHandleZeroOrMinusOneIsInvalid, SafeHandle.
Constructors
SafeOpcFileHandle
Initializes a new instance of the SafeOpcFileHandle class using the specified context used to acquire the handle value passed.
[CLSCompliant(false)]
public SafeOpcFileHandle(OpcFileNodeContext context, uint value)<CLSCompliant(False)>
Public Sub New(context As OpcFileNodeContext, value As UInteger)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
value | UInt32 | The pre-existing handle to use. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Properties
Context
Gets the OpcFileNodeContext within that the stored handle has been acquired and will be released in case there the wrapper gets disposed of or closed.
public OpcFileNodeContext Context { get; }Public ReadOnly Property Context As OpcFileNodeContextProperty value
An instance of the OpcFileNodeContext class.
Methods
ReleaseHandle
Executes the code required to free the handle.
protected override bool ReleaseHandle()Protected Overrides Function ReleaseHandle() As BooleanReturns
The value true if the handle is released successfully; otherwise in the event of a catastrophic failure the value false. In this case, it generates a releaseHandleFailed MDA Managed Debugging Assistant.
Overrides

