ITableManager.AddSource 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddSource(ITableDataSource, IReadOnlyCollection<String>) |
将 添加到 |
AddSource(ITableDataSource, String[]) |
将 添加到 |
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 () 返回) 之前立即 (调用 订阅 () 。