共用方式為


DataSourceAttribute.DefaultProviderName Field

Represents the default data provider name. This field is read-only.

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

Syntax

'Declaration
Public Shared ReadOnly DefaultProviderName As String
public static readonly string DefaultProviderName
public:
static initonly String^ DefaultProviderName
static val DefaultProviderName: string
public static final var DefaultProviderName : String

Remarks

This field returns "System.Data.OleDb", the default data provider name.

.NET Framework Security

See Also

Reference

DataSourceAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace