共用方式為


DataSourceAttribute.DataSourceSettingName Property

Gets a value indicating the setting name used to identify data source connection information stored in a configuration file.

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

Syntax

'Declaration
Public ReadOnly Property DataSourceSettingName As String
public string DataSourceSettingName { get; }
public:
property String^ DataSourceSettingName {
    String^ get ();
}
member DataSourceSettingName : string with get
function get DataSourceSettingName () : String

Property Value

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

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Walkthrough: Using a Configuration File to Define a Data Source