Class GeoNearOptionsWrapper
Represents a wrapped object that can be used where an IMongoGeoNearOptions is expected (the wrapped object is expected to serialize properly).
[Obsolete("Use GeoNearArgs instead.")]
[BsonSerializer(typeof(GeoNearOptionsWrapper.Serializer))]
public class GeoNearOptionsWrapper : BaseWrapper, IMongoGeoNearOptions
- Inheritance
-
GeoNearOptionsWrapper
- Implements
- Inherited Members
- Extension Methods
Constructors
GeoNearOptionsWrapper(object)
Initializes a new instance of the GeoNearOptionsWrapper class.
public GeoNearOptionsWrapper(object options)
Parameters
options
objectThe wrapped object.
Methods
Create(object)
Creates a new instance of the GeoNearOptionsWrapper class.
public static GeoNearOptionsWrapper Create(object options)
Parameters
options
objectThe wrapped object.
Returns
- GeoNearOptionsWrapper
A new instance of GeoNearOptionsWrapper or null.