CatalogRelationshipsDataSet.CatalogRelationshipChangeEventHandler Delegate
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Represents the method that will handle the Change event.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Delegate Sub CatalogRelationshipChangeEventHandler ( _
sender As Object, _
e As CatalogRelationshipsDataSet..::.CatalogRelationshipChangeEvent _
)
'Usage
Dim instance As New CatalogRelationshipChangeEventHandler(AddressOf HandlerMethod)
public delegate void CatalogRelationshipChangeEventHandler(
Object sender,
CatalogRelationshipsDataSet..::.CatalogRelationshipChangeEvent e
)
public delegate void CatalogRelationshipChangeEventHandler(
Object^ sender,
CatalogRelationshipsDataSet..::.CatalogRelationshipChangeEvent^ e
)
JScript does not support delegates.
Parameters
- sender
Type: System..::.Object
The source of the event.
- e
Type: Microsoft.CommerceServer.Catalog..::.CatalogRelationshipsDataSet..::.CatalogRelationshipChangeEvent
The CatalogRelationshipsDataSet..::.CatalogRelationshipChangeEvent that contains the event data.
Remarks
When you create a ChangeEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
The event model in the .NET Framework is based on having an event delegate that connects an event with its handler. To raise an event, two elements are needed:
A class that holds the event data. This class must derive from the base class EventArgs.
A method response to the event.