Skip to content

Reference

OpcMethodCommands Members

Provides a set of static (Shared in Visual Basic) IOpcMethodCommand instances.

Reference

OpcMethodCommands Members ​

Type
OpcMethodCommands
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Properties ​

NotImplemented ​

static

Gets an IOpcMethodCommand its executability evaluates to the value true while its implementation always returns the OPC UA related OpcResult using the OpcStatusCode member BadNotImplemented. Use this command in case there the method implementation is still in progress.

csharp
public static IOpcMethodCommand NotImplemented { get; }
vbnet
Public Shared ReadOnly Property NotImplemented As IOpcMethodCommand

Property value

IOpcMethodCommand

An executable command its execution results to BadNotImplemented.

Methods ​

Execute ​

static · since v2.24

Provides an IOpcMethodCommand is executability evaluates to the value true while its implementation invokes the callback specified.

csharp
public static IOpcMethodCommand Execute(
    OpcMethodCommands.ExecuteDelegate callback)
vbnet
Public Shared Function Execute(
    callback As OpcMethodCommands.ExecuteDelegate) As IOpcMethodCommand

Parameters

NameTypeDescription
callbackOpcMethodCommands.ExecuteDelegateThe OpcMethodCommands.ExecuteDelegate to invoke whenever the command is executed.

Returns

IOpcMethodCommand

A new instance of an executable command its execution will invoke the callback specified.

Exceptions

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

ExecuteAsync ​

static · since v2.24

Provides an IOpcAsyncMethodCommand is executability evaluates to the value true while its implementation invokes the callback specified.

csharp
public static IOpcAsyncMethodCommand ExecuteAsync(
    OpcMethodCommands.ExecuteAsyncDelegate callback)
vbnet
Public Shared Function ExecuteAsync(
    callback As OpcMethodCommands.ExecuteAsyncDelegate) As IOpcAsyncMethodCommand

Parameters

NameTypeDescription
callbackOpcMethodCommands.ExecuteAsyncDelegateThe OpcMethodCommands.ExecuteAsyncDelegate to invoke whenever the command is executed.

Returns

IOpcAsyncMethodCommand

A new instance of an executable command its execution will invoke the async callback specified.

Exceptions

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