Share via


DataSourceAttribute.DataAccessMethod Property

Gets the method used to access the data source.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public ReadOnly Property DataAccessMethod As DataAccessMethod
public DataAccessMethod DataAccessMethod { get; }
public:
property DataAccessMethod DataAccessMethod {
    DataAccessMethod get ();
}
member DataAccessMethod : DataAccessMethod with get
function get DataAccessMethod () : DataAccessMethod

Property Value

Type: Microsoft.VisualStudio.TestTools.UnitTesting.DataAccessMethod
One of the DataAccessMethod values. If the DataSourceAttribute is not initialized, this will return the default value Random.

Remarks

To set this attribute property, see How to: Configure a Data-Driven Unit Test.

.NET Framework Security

See Also

Reference

DataSourceAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

DataAccessMethod

Other Resources

How to: Configure a Data-Driven Unit Test