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: String

    The name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file.

.NET Framework Security

See Also

Reference

DataSourceAttribute Class

DataSourceAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Walkthrough: Using a Configuration File to Define a Data Source