KeyTypeAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许将成员标记为 .KeyDataViewType
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class KeyTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type KeyTypeAttribute = class
inherit Attribute
Public NotInheritable Class KeyTypeAttribute
Inherits Attribute
- 继承
-
KeyTypeAttribute
- 属性
注解
只能应用于以下类型的成员:Byte、、UInt16、 UInt32UInt64
构造函数
KeyTypeAttribute() |
将成员标记为 KeyDataViewType. |
KeyTypeAttribute(UInt64) |
将成员标记为 KeyDataViewType 并指定 KeyDataViewType 基数。
对于与 int 类型一起使用的属性, |