DataSourceAttribute Constructor (String, String)
Initializes a new instance of the DataSourceAttribute class. This instance will be initialized with a connection string and table name.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
It is important to note that properties are set at initialization for this object. This constructor overload uses the default value of System.Data.OleDb for the data provider name and uses the default value of Random for the data access method.
The connection string can contain sensitive data (for example, a password). The connection string is stored in plain text in source code and in the compiled assembly. Restrict access to the source code and assembly to protect this sensitive information.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.