Udostępnij za pośrednictwem


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
'Usage
Dim instance As DataSourceAttribute 
Dim value As DataAccessMethod 

value = instance.DataAccessMethod
public DataAccessMethod DataAccessMethod { get; }
public:
property DataAccessMethod DataAccessMethod {
    DataAccessMethod get ();
}
public 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

DataSourceAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace