# SerializationCallbacksAttribute

Package: [Microsoft.Orleans.Serialization.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs#L509)

```csharp
public sealed class SerializationCallbacksAttribute : Attribute
```

Specifies a type to be instantiated and invoked when performing serialization operations on instances of the type which this attribute is attached to.

## Constructors

- [SerializationCallbacksAttribute(Type)](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.serializationcallbacksattribute/constructors/constructor-system-type-e475dd60/)

## Properties

- [HookType](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.serializationcallbacksattribute/properties/hooktype-dd221e21/)
