DataSourceAttribute Class
Contains information that describes a data source for a Web performance test. This class cannot be inherited.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
| Name | Description | |
|---|---|---|
![]() | DataSourceAttribute(String^, String^, DataBindingAccessMethod, String^) | Initializes an instance of the DataSourceAttribute class using a single table and the defined access method. |
![]() | DataSourceAttribute(String^, String^, DataBindingAccessMethod, array<String^>^) | Initializes an instance of the DataSourceAttribute class using an array of table names. |
![]() | DataSourceAttribute(String^, String^, String^) | Initializes an instance of the DataSourceAttribute class using a single table. |
![]() | DataSourceAttribute(String^, String^, String^, DataBindingAccessMethod, DataBindingSelectColumns, String^) | Initializes an instance of the DataSourceAttribute class using an array of table names, the defined access method, name of the data source, name of the provider, connection string, and the column filters. |
![]() | DataSourceAttribute(String^, String^, String^, DataBindingAccessMethod, DataBindingSelectColumns, array<String^>^) | Initializes an instance of the DataSourceAttribute class using an array of table names, the defined access method, name of the data source, name of the provider, connection string, and the column filters. |
![]() | DataSourceAttribute(String^, String^, String^, DataBindingAccessMethod, String^) | Initializes an instance of the DataSourceAttribute class using a single table, the defined access method, and the name of the data source provider. |
![]() | DataSourceAttribute(String^, String^, String^, DataBindingAccessMethod, array<String^>^) | Initializes an instance of the DataSourceAttribute class using an array of table names, the defined access method, and the name of the data source provider. |
![]() | DataSourceAttribute(String^, String^, String^, String^) | Initializes an instance of the DataSourceAttribute class using a single table and the name of the data source provider. |
![]() | DataSourceAttribute(String^, String^, String^, array<String^>^) | Initializes an instance of the DataSourceAttribute class using an array of table names and the name of the data source provider. |
![]() | DataSourceAttribute(String^, String^, array<String^>^) | Initializes an instance of the DataSourceAttribute class. |
| Name | Description | |
|---|---|---|
![]() | AccessMethod | Gets the method by which data will be accessed in the data source. |
![]() | ConnectionString | Gets the connection for the data source. |
![]() | DataSourceName | Gets the name of the data source. |
![]() | DataSourceProviderName | Gets the name of the data source provider. |
![]() | SelectColumns | Gets the column filters used for selecting the data. |
![]() | TableNames | Gets the table names in the data source that contains data to be accessed. |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object^) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
The data source cannot be changed based on input during a test because all the data is loaded and cached before the first test runs. To change data sources at run-time, you can implement your own data binding. Use ADO.NET or a StreamReader when you read from a file.
This attribute can be applied to classes. This attribute can be applied multiple times. For more information about how to use attributes, see Extending Metadata Using Attributes.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



