IHierarchicalDataSourceDesigner.SuppressDataSourceEvents 方法
定义
关闭数据源控件中的事件。Turns off events in the data source control.
public:
void SuppressDataSourceEvents();
public void SuppressDataSourceEvents ();
abstract member SuppressDataSourceEvents : unit -> unit
Public Sub SuppressDataSourceEvents ()
注解
可以通过方法还原事件 ResumeDataSourceEvents 。You can restore events with the ResumeDataSourceEvents method.
实施者说明
通常情况下,在 SuppressDataSourceEvents() 打开对话框时(如使用 Configure() 方法)或调用 RefreshSchema(Boolean) 方法期间,如果生成架构需要多个进程,则会调用方法,其中任何一个进程都可能会产生异常。Typically, you would call the SuppressDataSourceEvents() method when opening a dialog box, such as with the Configure() method, or during a call to the RefreshSchema(Boolean) method, if building the schema requires multiple processes, any of which might create an exception. 处理完成后,调用 ResumeDataSourceEvents() 方法。After processing is finished, call the ResumeDataSourceEvents() method.