Partager via


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.

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); };
public Microsoft.VisualStudio.TestTools.UnitTesting.DataSourceElement this[int index] { get; set; }
member this.Item(int) : Microsoft.VisualStudio.TestTools.UnitTesting.DataSourceElement with get, set
Default Public Property Item(index As Integer) As DataSourceElement

Parameters

index
Int32

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

Property Value

Applies to

Item[String]

Returns the configuration element with the specified key.

public:
 property Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ default[System::String ^] { Microsoft::VisualStudio::TestTools::UnitTesting::DataSourceElement ^ get(System::String ^ name); };
public Microsoft.VisualStudio.TestTools.UnitTesting.DataSourceElement this[string name] { get; }
member this.Item(string) : Microsoft.VisualStudio.TestTools.UnitTesting.DataSourceElement
Default Public ReadOnly Property Item(name As String) As DataSourceElement

Parameters

name
String

The key of the element to return.

Property Value

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

Applies to