Visavi Visual OPC .NET  

OnGroupAdded Method

Raises the GroupAdded event.

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

[C#]
 protected virtual void OnGroupAdded(
   object sender,
   GroupArgs args
);

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

[JScript]
 protected function OnGroupAdded(
   sender : object,
   args : GroupArgs
);

Parameters

sender
The source of the event.
args
A GroupArgs that contains the group that was added.

Remarks

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

The OnGroupAdded 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 OnGroupAdded in a derived class, be sure to call the base class's OnGroupAdded 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