FilterDefinitionBuilderTDocumentJsonSchema Method |
Creates a json schema filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax public FilterDefinition<TDocument> JsonSchema(
BsonDocument schema
)
Public Function JsonSchema (
schema As BsonDocument
) As FilterDefinition(Of TDocument)
member JsonSchema :
schema : BsonDocument -> FilterDefinition<'TDocument>
Parameters
- schema
- Type: MongoDB.BsonBsonDocument
The json validation schema.
Return Value
Type:
FilterDefinitionTDocumentA schema filter.
See Also