Method Create
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Create(IBsonSerializer, string)
Creates an instance IOrderedEnumerableSerializer<TItem>.
public static IBsonSerializer Create(IBsonSerializer itemSerializer, string thenByExceptionMessage)
Parameters
itemSerializer
IBsonSerializerThe item serializer.
thenByExceptionMessage
stringThe message to use when throwing an exception because ThenBy is not supported.
Returns
- IBsonSerializer
An IOrderedEnumerableSerializer<TItem>.