Udostępnij za pośrednictwem


ITableManager.AddSource Metoda

Definicja

Przeciążenia

AddSource(ITableDataSource, IReadOnlyCollection<String>)

Dodaj source do listy źródeł skojarzonych z menedżerem tabel.

AddSource(ITableDataSource, String[])

Dodaj source do listy źródeł skojarzonych z menedżerem tabel.

AddSource(ITableDataSource, IReadOnlyCollection<String>)

Dodaj source do listy źródeł skojarzonych z menedżerem tabel.

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

Parametry

source
ITableDataSource

Źródło danych tabeli.

columns
IReadOnlyCollection<String>

Wskazuje kolumny, które mogą być wyświetlane przez tabelę zawierającą dane z source.

Zwraca

wartość true, jeśli source została dodana do źródeł menedżera tabel. Zwraca wartość false, jeśli nie (ponieważ była to już jedna ze źródeł menedżera tabel).

Uwagi

Tę metodę można wywołać z dowolnego wątku.

columns musi być niezmienny i wywoływany z dowolnego wątku.

Dodanie źródła może spowodować sourcewywołanie elementu Subskrybuj bezpośrednio (przed zwróceniem funkcji AddSource().

Dotyczy

AddSource(ITableDataSource, String[])

Dodaj source do listy źródeł skojarzonych z menedżerem tabel.

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

Parametry

source
ITableDataSource

Źródło danych tabeli.

columns
String[]

Wskazuje kolumny, które mogą być wyświetlane przez tabelę zawierającą dane z source.

Zwraca

wartość true, jeśli source została dodana do źródeł menedżera tabel. Zwraca wartość false, jeśli nie (ponieważ była to już jedna ze źródeł menedżera tabel).

Uwagi

Tę metodę można wywołać z dowolnego wątku.

Dodanie źródła może spowodować sourcewywołanie elementu Subskrybuj bezpośrednio (przed zwróceniem funkcji AddSource().

Dotyczy