不使用任何类别初始化 UITestPropertyDescriptor 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Sub New ( _
    dataType As Type, _
    attributes As UITestPropertyAttributes _
)
public UITestPropertyDescriptor(
    Type dataType,
    UITestPropertyAttributes attributes
)
public:
UITestPropertyDescriptor(
    Type^ dataType, 
    UITestPropertyAttributes attributes
)
new : 
        dataType:Type * 
        attributes:UITestPropertyAttributes -> UITestPropertyDescriptor
public function UITestPropertyDescriptor(
    dataType : Type, 
    attributes : UITestPropertyAttributes
)
参数
- dataType
 类型:System.Type
 属性值的数据类型。
- attributes
 类型:Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyAttributes
 与属性相关联的权限。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。