Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GenerateSerializerAttribute Class

Definition

Namespace:
Orleans
Assembly:
Orleans.Serialization.Abstractions.dll
Package:
Microsoft.Orleans.Serialization.Abstractions v10.0.0
Package:
Microsoft.Orleans.Serialization.Abstractions v7.2.5
Package:
Microsoft.Orleans.Serialization.Abstractions v8.0.0
Package:
Microsoft.Orleans.Serialization.Abstractions v8.1.0
Package:
Microsoft.Orleans.Serialization.Abstractions v8.2.0
Package:
Microsoft.Orleans.Serialization.Abstractions v9.0.0
Package:
Microsoft.Orleans.Serialization.Abstractions v9.1.2
Source:
Annotations.cs
Source:
Annotations.cs
Source:
Annotations.cs
Source:
Annotations.cs
Source:
Annotations.cs
Source:
Annotations.cs
Source:
Annotations.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

When applied to a type, specifies that the type is intended to be serialized and that serialization code should be generated for the type.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct)]
public sealed class GenerateSerializerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Struct)>]
type GenerateSerializerAttribute = class
 inherit Attribute
Public NotInheritable Class GenerateSerializerAttribute
Inherits Attribute
Inheritance
GenerateSerializerAttribute
Attributes

Constructors

Name Description
GenerateSerializerAttribute()

Properties

Name Description
GenerateFieldIds

Get or sets when Orleans should auto-assign field ids. The default behavior is to not auto-assign field ids.

IncludePrimaryConstructorParameters

Get or sets if primary constructor parameters should automatically be included as Serializable fields. Defaults to true for record types, false otherwise.

Applies to

See also