Visavi Visual OPC .NET  

OnItemRuntimeChange Method

Raises the ItemRuntimeChange event.

[Visual Basic]
 Protected Overridable Sub  OnItemRuntimeChange( _
   ByVal sender As Object, _
   ByVal args As ItemArgs _
)

[C#]
 protected virtual void OnItemRuntimeChange(
   object sender,
   ItemArgs args
);

[C++]
 protected __gc virtual void OnItemRuntimeChange(
   Object* sender,
   ItemArgs* args
);

[JScript]
 protected function OnItemRuntimeChange(
   sender : object,
   args : ItemArgs
);

Parameters

sender
The source of the event.
args
A ItemArgs that contains the IOpcItem that changed.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The OnItemRuntimeChange method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors:  When overriding OnItemRuntimeChange in a derived class, be sure to call the base class's OnItemRuntimeChange method so that registered delegates receive the event.

Requirements

Namespace: Visavi.Opc.Client

Platforms:  Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

Assembly: Visavi.Opc.Client

See Also

Visavi.Opc.Client Namespace