MarkLogic XCC/.Net Library |

# Content Methods

The methods of the Content interface are listed below. For a complete list of Content interface members, see the Content Members topic.

#### Public Instance Methods

Close | This method will be called after successfully consuming the content from the Stream returned by OpenDataStream(). This method need not close the stream, that is the responsibility of the client, but it may invalidate the stream. This method is to inform the implementation that any resources it may be holding can be released.
OpenDataStream | Return the byte stream that makes up this document. If the content is character data, as opposed to a binary BLOB, this should be a UTF-8 encoding of the characters. Each call to this method returns a stream positioned at the beginning of the content. The Stream object should be closed by the client. The returned Stream is not intended to be shared. Each call to this method implies that any prior state should be discarded and a new stream created that is positioned at the beginning of the content.
Rewind | This method tells the implementation that the content should be rewound to start again. This method will only be called if Rewindable is true and in that case only after OpenDataStream() has been called.
Size | The size of the content, in bytes, of the content. If the size cannot be determined at the time this method is invoked (if the content is streaming for example), then -1 is returned.

#### See Also

Content Interface | Marklogic.Xcc Namespace