Share via


DataSourceAttribute Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the DataSourceAttribute class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

 

Name

Description

Public method

DataSourceAttribute(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.

Public method

DataSourceAttribute(String, String)

Initializes a new instance of the DataSourceAttribute class. This instance will be initialized with a connection string and table name.

Public method

DataSourceAttribute(String, String, String, DataAccessMethod)

Initializes a new instance of the DataSourceAttribute class. This instance will be initialized with a data provider, connection string, data table and data access method to access the data source.

Top

See Also

Reference

DataSourceAttribute Class

DataSourceAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace