IDataSourceFieldSchema.IsUnique 属性

定义

获取一个值,该值指示是否要求字段值是唯一的。Gets a value indicating whether values in the field are required to be unique.

public:
 property bool IsUnique { bool get(); };
public bool IsUnique { get; }
member this.IsUnique : bool
Public ReadOnly Property IsUnique As Boolean

属性值

Boolean

如果字段中的数据必须是唯一的,则为 true;否则为 falsetrue if data in the field must be unique; otherwise, false.

注解

对于 DataColumn 对象, IsUnique 属性与属性相对应 UniqueFor a DataColumn object, the IsUnique property corresponds to the Unique property.

适用于

另请参阅