MarkLogic XCC/.Net Library

ContentFactory.NewContent Method

Create a new Content object from an XdmNode. This object may have been constructed locally or received as a member of a ResultSequence. If not explicitly overridden, the document format will be set to XML.

Overload List

Create a new Content object from an XdmNode. This object may have been constructed locally or received as a member of a ResultSequence. If not explicitly overridden, the document format will be set to XML.

public static Content NewContent(string,XdmNode,ContentCreateOptions);

Create a new Content object from a byte array.

public static Content NewContent(string,byte[],ContentCreateOptions);

Create a new object from a FileInfo object.

public static Content NewContent(string,FileInfo,ContentCreateOptions);

Create a new Content object by consuming the given InputStream and buffereing it in memory. This factory method immediately reads the stream to the end and buffers it. This could result in an OutOfMemoryError if the stream contains a large amount of data. The provided Stream will be closed.

public static Content NewContent(string,Stream,ContentCreateOptions);

Create a new Content object from a String.

public static Content NewContent(string,string,ContentCreateOptions);

Create a new Content object from a URI, buffering so that it's rewindable and only accesses the URL one time.

public static Content NewContent(string,Uri,ContentCreateOptions);

Create a new Content object from an XmlDocument object. If not explicitly overridden, the document format will be set to XML.

public static Content NewContent(string,XmlDocument,ContentCreateOptions);

Create a new Content object from an XmlNode object.

public static Content NewContent(string,XmlNode,ContentCreateOptions);

See Also

ContentFactory Class | Marklogic.Xcc Namespace