Method CreateCollection
CreateCollection(string, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
public virtual void CreateCollection(string name, CreateCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
name
stringThe name.
options
CreateCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
CreateCollection(IClientSessionHandle, string, CreateCollectionOptions, CancellationToken)
Creates the collection with the specified name.
public virtual void CreateCollection(IClientSessionHandle session, string name, CreateCollectionOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
name
stringThe name.
options
CreateCollectionOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.