Constructor IOrderedEnumerableSerializer

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization.Serializers

Assembly

MongoDB.Bson.dll

IOrderedEnumerableSerializer(IBsonSerializer, string)

Initializes a new instance of IOrderedEnumerableSerializer.

public IOrderedEnumerableSerializer(IBsonSerializer<TItem> itemSerializer, string thenByExceptionMessage)

Parameters

itemSerializer IBsonSerializer

The item serializer.

thenByExceptionMessage string

The message to use when throwing an exception because ThenBy is not supported.