This topic has not yet been rated - Rate this topic

ComAutomationEvent Class

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents an Automation event.

Namespace:  System.Windows.Interop
Assembly:  System.Windows (in System.Windows.dll)
public sealed class ComAutomationEvent

This class provides utility members for using managed event handlers to handle Automation events. It is the return value type of the ComAutomationFactory.GetEvent method.

In Visual Basic, you must use this class to handle Automation events. In C#, you can attach managed event handlers directly to Automation events by using the += syntax, and detach them using the -= syntax. However, in this case, the specified delegate must have a signature that exactly matches the Automation event signature.

Regardless of language, you can handle the EventRaised event without requiring knowledge of the Automation event signatures. The AddEventHandler and RemoveEventHandler methods provide alternatives that do require knowledge of the event signature.

For more information, see ComAutomationFactory. For more information about Automation, see Automation.

System.Object
  System.Windows.Interop.ComAutomationEvent
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)