MarkLogic XCC/.Net Library |

# ContentFactory.NewUnBufferedContent Method (String, Stream, ContentCreateOptions)

Create a new non-rewindable Content object for the given InputStream. Note that the Content instance returned is not rewindable (Content.isRewindable() == false) which means that auto-retry cannot be performed if there is a problem inserting the content.

[Visual Basic]
Overloads Public Shared Function NewUnBufferedContent( _
ByVal uri As String, _
ByVal documentStream As Stream, _
ByVal createOptions As ContentCreateOptions _
) As Content
[C#]
public static Content NewUnBufferedContent(
string uri,
Stream documentStream,
ContentCreateOptions createOptions
);

#### Parameters

uri
  The URI (name) with which the document will be inserted into the content store. If the URI already exists in the store, it will be replaced with the new value.
documentStream
  The stream making up the document content.
createOptions
  Creation meta-information to be applied when the content is inserted into the contentbase. These options control the document format (xml, text, binary) and access permissions.

#### Return Value

A non-rewindable Content object suitable for passing to Session.insertContent(Content)

#### See Also

ContentFactory Class | Marklogic.Xcc Namespace | ContentFactory.NewUnBufferedContent Overload List