Udostępnij za pośrednictwem


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

value = instance.DataSourceSettingName
public string DataSourceSettingName { get; }
public:
property String^ DataSourceSettingName {
    String^ get ();
}
public function get DataSourceSettingName () : String

Property Value

Type: System.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

DataSourceAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Walkthrough: Using a Configuration File to Define a Data Source