Class DataSourceCollection
Collection class for DataSource. Provides convenient properties for setting a property on multiple objects at once.
Implements
Inherited Members
Namespace: TabularEditor.TOMWrapper
Assembly: TOMWrapper.dll
Syntax
public sealed class DataSourceCollection : TabularObjectCollection<DataSource>, INotifyCollectionChanged, IReadOnlyList<DataSource>, IReadOnlyCollection<DataSource>, IEnumerable<DataSource>, IEnumerable
Properties
Count
The number of items in this collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Description
Sets the Description property of all objects in the collection at once.
Declaration
public string Description { set; }
Property Value
Type | Description |
---|---|
string |
MaxConnections
Sets the MaxConnections property of all objects in the collection at once.
Declaration
public int MaxConnections { set; }
Property Value
Type | Description |
---|---|
int |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public override IEnumerator<DataSource> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<DataSource> |
Overrides
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.
Declaration
public void SetPlaceholder(string keyword, string replaceWith)
Parameters
Type | Name | Description |
---|---|---|
string | keyword | |
string | replaceWith |