Method CreateCollection
CreateCollection(string, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
void CreateCollection(string name, CreateCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
namestringThe name.
optionsCreateCollectionOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
CreateCollection(IClientSessionHandle, string, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
void CreateCollection(IClientSessionHandle session, string name, CreateCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
sessionIClientSessionHandleThe session.
namestringThe name.
optionsCreateCollectionOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.