# AzureQueueDataAdapterV2

Package: [Microsoft.Orleans.Streaming.AzureStorage](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming.AzureStorage) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/AzureQueue/IAzureQueueDataAdapter.cs#L59)

```csharp
public class AzureQueueDataAdapterV2 : IOnDeserialized, IQueueDataAdapter<string, IBatchContainer>, IQueueDataAdapter<string>
```

Data adapter that uses types that support custom serializers (like json).

## Constructors

- [AzureQueueDataAdapterV2(Serializer)](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.providers.streams.azurequeue.azurequeuedataadapterv2/constructors/constructor-orleans-serialization-serializer-8855f0ed/)

## Methods

- [FromQueueMessage(string, long)](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.providers.streams.azurequeue.azurequeuedataadapterv2/methods/fromqueuemessage-string-long-b4075b4f/)
- [ToQueueMessage(StreamId, IEnumerable&lt;T&gt;, StreamSequenceToken, Dictionary&lt;string, object&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.providers.streams.azurequeue.azurequeuedataadapterv2/methods/toqueuemessage-1-orleans-runtime-streamid-system-collections-generic-ienumerable-e69f7f91/)
