PipelineStageDefinitionBuilderChangeStreamTInput Method |
Creates a $changeStream stage.
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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax public static PipelineStageDefinition<TInput, ChangeStreamDocument<TInput>> ChangeStream<TInput>(
ChangeStreamStageOptions options = null
)
Public Shared Function ChangeStream(Of TInput) (
Optional options As ChangeStreamStageOptions = Nothing
) As PipelineStageDefinition(Of TInput, ChangeStreamDocument(Of TInput))
static member ChangeStream :
?options : ChangeStreamStageOptions
(* Defaults:
let _options = defaultArg options null
*)
-> PipelineStageDefinition<'TInput, ChangeStreamDocument<'TInput>>
Parameters
- options (Optional)
- Type: MongoDB.DriverChangeStreamStageOptions
The options.
Type Parameters
- TInput
- The type of the input documents.
Return Value
Type:
PipelineStageDefinitionTInput,
ChangeStreamDocumentTInputThe stage.
See Also