Table of Contents

Class DataSourceCollection

Inheritance
DataSourceCollection
Implements
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll

Collection class for DataSource. Provides convenient properties for setting a property on multiple objects at once.

public sealed class DataSourceCollection : TabularObjectCollection<DataSource>, INotifyCollectionChanged, IReadOnlyList<DataSource>, IReadOnlyCollection<DataSource>, IEnumerable<DataSource>, IEnumerable
Extension Methods

Properties

Count

The number of items in this collection.

public override int Count { get; }

Property Value

Type Description
int

Description

Sets the Description property of all objects in the collection at once.

public string Description { set; }

Property Value

Type Description
string

MaxConnections

Sets the MaxConnections property of all objects in the collection at once.

public int MaxConnections { set; }

Property Value

Type Description
int

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public override IEnumerator<DataSource> GetEnumerator()

Returns

Type Description
IEnumerator<DataSource>

SetPlaceholder(string, string)

Replaces any occurence of the specified "keyword" with the specified "replaceWith", in the ConnectionString property of all Provider Data Sources in the collection.

public void SetPlaceholder(string keyword, string replaceWith)

Parameters

Type Name Description
string keyword
string replaceWith