Share via


ITableManager.AddSource Method

Definition

Overloads

AddSource(ITableDataSource, IReadOnlyCollection<String>)

Add source to the list of sources associated with the table manager.

AddSource(ITableDataSource, String[])

Add source to the list of sources associated with the table manager.

AddSource(ITableDataSource, IReadOnlyCollection<String>)

Add source to the list of sources associated with the table manager.

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

Parameters

source
ITableDataSource

Table data source.

columns
IReadOnlyCollection<String>

Indicates the columns that could be displayed by a table containing data from source.

Returns

true if source was added to the table manager's Sources. Returns false if it was not (because it was already one of the table manager's sources).

Remarks

This method can be called from any thread.

columns must be immutable and callable from any thread.

Adding a source may cause source's Subscribe() to be called immediately (before AddSource() returns).

Applies to

AddSource(ITableDataSource, String[])

Add source to the list of sources associated with the table manager.

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

Parameters

source
ITableDataSource

Table data source.

columns
String[]

Indicates the columns that could be displayed by a table containing data from source.

Returns

true if source was added to the table manager's Sources. Returns false if it was not (because it was already one of the table manager's sources).

Remarks

This method can be called from any thread.

Adding a source may cause source's Subscribe() to be called immediately (before AddSource() returns).

Applies to