DataSourceElement.Name 属性

获取或设置 app.config 文件中的数据源名称设置项。

命名空间:  Microsoft.VisualStudio.TestTools.UnitTesting
程序集:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

语法

声明
<ConfigurationPropertyAttribute("name", IsKey := True, IsRequired := True)> _
Public Property Name As String
    Get
    Set
[ConfigurationPropertyAttribute("name", IsKey = true, IsRequired = true)]
public string Name { get; set; }
[ConfigurationPropertyAttribute(L"name", IsKey = true, IsRequired = true)]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
[<ConfigurationPropertyAttribute("name", IsKey = true, IsRequired = true)>]
member Name : string with get, set
function get Name () : String
function set Name (value : String)

属性值

类型:System.String
数据源名称。

.NET Framework 安全性

请参见

参考

DataSourceElement 类

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间