ITableManager.RemoveSource(ITableDataSource) 方法

定义

source从与此表管理器关联的源列表中删除。

public:
 bool RemoveSource(Microsoft::VisualStudio::Shell::TableManager::ITableDataSource ^ source);
public:
 bool RemoveSource(Microsoft::VisualStudio::Shell::TableManager::ITableDataSource ^ source);
bool RemoveSource(Microsoft::VisualStudio::Shell::TableManager::ITableDataSource const & source);
public bool RemoveSource (Microsoft.VisualStudio.Shell.TableManager.ITableDataSource source);
abstract member RemoveSource : Microsoft.VisualStudio.Shell.TableManager.ITableDataSource -> bool
Public Function RemoveSource (source As ITableDataSource) As Boolean

参数

source
ITableDataSource

源。

返回

Boolean

如果 source 从表管理器中删除了,则为 true。 如果未 (,则返回 false,因为它不是表管理器的源) 之一。

注解

删除源可能会导致 source unnsubscribe (例如,在 RemoveSource () 返回) 之前,订阅 obkect 上的调用 Dispose () ) 立即 (。

适用于