NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentModelPersister.GenerateEvent

Generates a single event hookup method for the initialization method.

[Visual Basic]
Protected Function GenerateEvent( _
   ByVal component As IComponent, _
   ByVal objectName() As String, _
   ByVal eventProp As PropertyDescriptor _
) As ICodeStatement
[C#]
protected ICodeStatement GenerateEvent(
   IComponent component,
   string[] objectName,
   PropertyDescriptor eventProp
);
[C++]
protected: ICodeStatement* GenerateEvent(
   IComponent* component,
   String* objectName[],
   PropertyDescriptor* eventProp
);
[JScript]
protected function GenerateEvent(
   component : IComponent,
   objectName : String[],
   eventProp : PropertyDescriptor
) : ICodeStatement;

Parameters

component
The component that the event is getting hooked to.
objectName
The name of the component. Passed in here for performance reasons only.
eventProp
The "pseudo" property that represents the event. Undone. This is really a kludge- we want a good way at design time to determine the name of the method to bind to... but this is what we have for now!

See Also

ComponentModelPersister Class | ComponentModelPersister Members | System.ComponentModel.Design Namespace