IBucket.Insert<T> Method (IDocument<T>)Couchbase .NET SDK 2.0
Inserts a JSON document into the IBucketfailing if it exists.

Namespace: Couchbase.Core
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IDocumentResult<T> Insert<T>(
	IDocument<T> document
)

Parameters

document
Type: Couchbase.IDocument<T>
The IDocument<T> JSON document to add to the database.
Type Parameters
T
The Type T value of the document to be inserted.

Return Value

Type: IDocumentResult<T>
An object implementing IDocumentResult<T> with information regarding the operation.
See Also