IdAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定成员的唯一标识。
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)]
public sealed class IdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)>]
type IdAttribute = class
inherit Attribute
Public NotInheritable Class IdAttribute
Inherits Attribute
- 继承
-
IdAttribute
- 属性
注解
应用于它的类型GenerateSerializerAttribute中的每个可序列化成员都必须应用一个具有唯Id一IdAttribute值的属性。