DataSourceAttribute Constructor (String)
Initializes a new instance of the DataSourceAttribute class. This instance will be initialized with a data provider and connection string associated with the setting name.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
dataSourceSettingName As String _
)
public DataSourceAttribute(
string dataSourceSettingName
)
public:
DataSourceAttribute(
String^ dataSourceSettingName
)
new :
dataSourceSettingName:string -> DataSourceAttribute
public function DataSourceAttribute(
dataSourceSettingName : String
)
Parameters
dataSourceSettingName
Type: StringThe name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file.
.NET Framework Security
- 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.
See Also
Reference
Microsoft.VisualStudio.TestTools.UnitTesting Namespace
Other Resources
Walkthrough: Using a Configuration File to Define a Data Source