EventDescriptorCollection.Contains(EventDescriptor) 方法
定义
返回集合是否包含给定的 EventDescriptor。Returns whether the collection contains the given EventDescriptor.
public:
bool Contains(System::ComponentModel::EventDescriptor ^ value);
public bool Contains (System.ComponentModel.EventDescriptor value);
member this.Contains : System.ComponentModel.EventDescriptor -> bool
Public Function Contains (value As EventDescriptor) As Boolean
参数
- value
- EventDescriptor
要在集合内查找的 EventDescriptor。The EventDescriptor to find within the collection.
返回
如果该集合包含 value,则为 true;否则为 false。true if the collection contains the value parameter given; otherwise, false.
注解
备注
HostProtectionAttribute应用于此类的特性具有以下 Resources 属性值: Synchronization 。The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. HostProtectionAttribute 不影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动这些应用程序)。The 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). 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和宿主保护特性。For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.