DataSourceElementCollection.Item[] Property

Definition

Overloads

Item[Int32]

Gets the configuration element at the specified index location.

Item[String]

Returns the configuration element with the specified key.

Item[Int32]

Gets the configuration element at the specified index location.

C++
public:
 property Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ default[int] { Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ get(int index); void set(int index, Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ value); };

Parameters

index
Int32

The index location of the System.Configuration.ConfigurationElement to return.

Property Value

Applies to

Visual Studio SDK 2022 et autres versions
Produit Versions
Visual Studio SDK 2017, 2019, 2022

Item[String]

Returns the configuration element with the specified key.

C++
public:
 property Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ default[System::String ^] { Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ get(System::String ^ name); };

Parameters

name
String

The key of the element to return.

Property Value

The System.Configuration.ConfigurationElement with the specified key; otherwise, null.

Applies to

Visual Studio SDK 2022 et autres versions
Produit Versions
Visual Studio SDK 2017, 2019, 2022