IOpcMethodCommand Interface

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

Defines a command used as the implementation of a method.

C#

public interface IOpcMethodCommand
Name Description
CanExecute(OpcContext) Determines the value of the Executable attribute of the method (CanExecute) and therefore decides whether the Execute(OpcMethodContext, IList, IList) method can be called in general to execute the method implementation.
CanUserExecute(OpcContext) Determines the value of the UserExecutable attribute of the method (CanUserExecute) and therefore decides wether the Execute(OpcMethodContext, IList, IList) method can be called by the current user to execute the method implementation.
Execute(OpcMethodContext, IList, IList) Performs the tasks necessary to implement the logic associated with a specific method using the context and inputArguments specified.