System.ComponentModel.EventDescriptorCollection.Find Method

Gets the description of the event with the specified name in the collection.

Syntax

public virtual EventDescriptor Find (string name, bool ignoreCase)

Parameters

name
The name of the event to get from the collection.
ignoreCase
true if you want to ignore the case of the event; otherwise, false.

Returns

The System.ComponentModel.EventDescriptor with the specified name, or null if the event does not exist.

Remarks

Note:

The System.Security.Permissions.HostProtectionAttribute attribute applied to this class has the following System.Security.Permissions.HostProtectionAttribute.Resources property value: System.Security.Permissions.HostProtectionResource.Synchronization. The System.Security.Permissions.HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the System.Security.Permissions.HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0