FeatureAttribute.FeatureAttribute
FeatureAttribute(string, AttributeDataType)
初始化一个新的实例FeatureAttribute
类.
public FeatureAttribute(string name, AttributeDataType dataType)
范围 | 类型 | 描述 |
---|
name | String | 属性的名称。 |
dataType | AttributeDataType | 属性的数据类型。 |
也可以看看
FeatureAttribute(string, AttributeDataType, bool)
初始化一个新的实例FeatureAttribute
类.
public FeatureAttribute(string name, AttributeDataType dataType, bool canBeNull)
范围 | 类型 | 描述 |
---|
name | String | 属性的名称。 |
dataType | AttributeDataType | 属性的数据类型。 |
canBeNull | Boolean | true 如果这个实例可以为空;否则,false . |
例外
例外 | (健康)状况 |
---|
ArgumentNullException | 属性名称是null . |
也可以看看