AggregateFluentBaseTResultChangeStream Method |
Appends a $changeStream stage to the pipeline.
Normally you would prefer to use the Watch method of
IMongoCollectionTDocument.
Only use this method if subsequent stages project away the resume token (the _id)
or you don't want the resulting cursor to automatically resume.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public virtual IAggregateFluent<ChangeStreamDocument<TResult>> ChangeStream(
ChangeStreamStageOptions options = null
)
Public Overridable Function ChangeStream (
Optional options As ChangeStreamStageOptions = Nothing
) As IAggregateFluent(Of ChangeStreamDocument(Of TResult))
abstract ChangeStream :
?options : ChangeStreamStageOptions
(* Defaults:
let _options = defaultArg options null
*)
-> IAggregateFluent<ChangeStreamDocument<'TResult>>
override ChangeStream :
?options : ChangeStreamStageOptions
(* Defaults:
let _options = defaultArg options null
*)
-> IAggregateFluent<ChangeStreamDocument<'TResult>>
Parameters
- options (Optional)
- Type: MongoDB.DriverChangeStreamStageOptions
The options.
Return Value
Type:
IAggregateFluentChangeStreamDocumentTResultThe fluent aggregate interface.
Implements
IAggregateFluentTResultChangeStream(ChangeStreamStageOptions)See Also