Edit

Share via


IdAttribute Class

Definition

Specifies the unique identity of a member.

[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
Inheritance
IdAttribute
Attributes

Remarks

Every serializable member in a type which has GenerateSerializerAttribute applied to it must have one IdAttribute attribute applied with a unique Id value.

Constructors

IdAttribute(UInt32)

Initializes a new instance of the IdAttribute class.

Properties

Id

Gets the identifier.

Applies to

See also