MarkLogic XCC/.Net Library |

# Session.InsertContent Method (Content)

Insert the given Content into the contentbase. This is equivalent to calling InsertContent(Content[]) with an array length of one. Upon return, the content will have been inserted and committed. Content objects that are rewindable will be automatically retried if a recoverable error occurs during transmission to the server. To specify the maximum number of retry attemtps, set an instance of RequestOptions with the desired value (RequestOptions.MaxAutoRetry}) using the DefaultRequestOptions property prior to invoking this method.

[Visual Basic]
Sub InsertContent( _
ByVal content As Content _
)
[C#]
void InsertContent(
Content content
);

#### Parameters

content
  A single Content instance to be inserted in the contentbase.

#### See Also

Session Interface | Marklogic.Xcc Namespace | Session.InsertContent Overload List