PropertyAttribute 构造函数

定义

重载

PropertyAttribute()

直接设置属性字典的派生类的构造函数。

PropertyAttribute(Object)

由使用类型名称作为属性名称的派生类使用的构造函数。 派生类必须确保属性值的类型是 BCL 支持的标准类型。 在客户端中时,任何自定义类型都将导致序列化异常。

PropertyAttribute(String, Double)

使用名称和双精度值构造 PropertyAttribute

PropertyAttribute(String, Int32)

使用名称和 int 值构造 PropertyAttribute

PropertyAttribute(String, String)

使用名称和字符串值构造 PropertyAttribute

PropertyAttribute()

直接设置属性字典的派生类的构造函数。

protected PropertyAttribute();

适用于

PropertyAttribute(Object)

由使用类型名称作为属性名称的派生类使用的构造函数。 派生类必须确保属性值的类型是 BCL 支持的标准类型。 在客户端中时,任何自定义类型都将导致序列化异常。

protected PropertyAttribute(object propertyValue);
new NUnit.Framework.PropertyAttribute : obj -> NUnit.Framework.PropertyAttribute

参数

propertyValue
Object

适用于

PropertyAttribute(String, Double)

使用名称和双精度值构造 PropertyAttribute

public PropertyAttribute(string propertyName, double propertyValue);
new NUnit.Framework.PropertyAttribute : string * double -> NUnit.Framework.PropertyAttribute

参数

propertyName
String

属性的名称

propertyValue
Double

属性值

适用于

PropertyAttribute(String, Int32)

使用名称和 int 值构造 PropertyAttribute

public PropertyAttribute(string propertyName, int propertyValue);
new NUnit.Framework.PropertyAttribute : string * int -> NUnit.Framework.PropertyAttribute

参数

propertyName
String

属性的名称

propertyValue
Int32

属性值

适用于

PropertyAttribute(String, String)

使用名称和字符串值构造 PropertyAttribute

public PropertyAttribute(string propertyName, string propertyValue);
new NUnit.Framework.PropertyAttribute : string * string -> NUnit.Framework.PropertyAttribute

参数

propertyName
String

属性的名称

propertyValue
String

属性值

适用于