Skip to content

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.

csharp
[CLSCompliant(false)]
public SafeOpcFileHandle(OpcFileNodeContext context, uint value)
vbnet
<CLSCompliant(False)>
Public Sub New(context As OpcFileNodeContext, value As UInteger)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext used to acquire the handle to wrap and which is to be used by the safe handle to release the handle.
valueUInt32The pre-existing handle to use.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

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.

csharp
public OpcFileNodeContext Context { get; }
vbnet
Public ReadOnly Property Context As OpcFileNodeContext

Property value

OpcFileNodeContext

An instance of the OpcFileNodeContext class.

Methods ​

ReleaseHandle ​

protected · override

Executes the code required to free the handle.

csharp
protected override bool ReleaseHandle()
vbnet
Protected Overrides Function ReleaseHandle() As Boolean

Returns

Boolean

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

ReleaseHandle()