ITableManager.AddSource 方法

定义

重载

AddSource(ITableDataSource, IReadOnlyCollection<String>)

将 添加到 source 与表管理器关联的源列表。

AddSource(ITableDataSource, String[])

将 添加到 source 与表管理器关联的源列表。

AddSource(ITableDataSource, IReadOnlyCollection<String>)

将 添加到 source 与表管理器关联的源列表。

public:
 bool AddSource(Microsoft::VisualStudio::Shell::TableManager::ITableDataSource ^ source, System::Collections::Generic::IReadOnlyCollection<System::String ^> ^ columns);
public bool AddSource (Microsoft.VisualStudio.Shell.TableManager.ITableDataSource source, System.Collections.Generic.IReadOnlyCollection<string> columns);
abstract member AddSource : Microsoft.VisualStudio.Shell.TableManager.ITableDataSource * System.Collections.Generic.IReadOnlyCollection<string> -> bool
Public Function AddSource (source As ITableDataSource, columns As IReadOnlyCollection(Of String)) As Boolean

参数

source
ITableDataSource

表数据源。

columns
IReadOnlyCollection<String>

指示可由包含 中 source数据的表显示的列。

返回

如果 source 已添加到表管理器的源,则为 true。 如果未 (,则返回 false,因为它已是表管理器的源) 之一。

注解

可以从任何线程调用此方法。

columns 必须不可变且可从任何线程调用。

添加源可能会导致 source在 AddSource () 返回) 之前立即 (调用 订阅 () 。

适用于

AddSource(ITableDataSource, String[])

将 添加到 source 与表管理器关联的源列表。

public:
 bool AddSource(Microsoft::VisualStudio::Shell::TableManager::ITableDataSource ^ source, ... cli::array <System::String ^> ^ columns);
public bool AddSource (Microsoft.VisualStudio.Shell.TableManager.ITableDataSource source, params string[] columns);
abstract member AddSource : Microsoft.VisualStudio.Shell.TableManager.ITableDataSource * string[] -> bool
Public Function AddSource (source As ITableDataSource, ParamArray columns As String()) As Boolean

参数

source
ITableDataSource

表数据源。

columns
String[]

指示可由包含 中 source数据的表显示的列。

返回

如果 source 已添加到表管理器的源,则为 true。 如果未 (,则返回 false,因为它已是表管理器的源) 之一。

注解

可以从任何线程调用此方法。

添加源可能会导致 source在 AddSource () 返回) 之前立即 (调用 订阅 () 。

适用于