3.1.5.21.15 Document Version 1 Information and Content Result Set
The Document Version 1 Information and Content Result Set contains information about the document stream for the requested version of the document.
The Document Version 1 Information and Content Result Set MUST only be returned if @GetContent is set to "1" and @Version is not negative, and the document exists with the publishing level specified by @Level and with the user interface (UI) version specified by @Version.
The Document Version 1 Information and Content Result Set MUST contain one row if it is returned.
-
{Size} int, {Content} varbinary(max) {RbsId} varbinary(800), {Version} int, {Id} uniqueidentifier, {SetupPathVersion} tinyint, {SetupPath} nvarchar(255), {Dirty} bit, DocFlags int, {IsHistoricalVersion} bit, {Level} tinyint, InternalVersion int
{Size}: The size of the requested document in bytes.
{Content}: The document stream of the document. For a ghosted document, content MUST be NULL. If the content is larger than the value specified in the @ChunkSize parameter, then the amount of data returned from the document stream will be equal to the number of bytes specified by the @ChunkSize parameter starting at the first byte of the document stream. The front-end web server can then request individual chunks of content in subsequent requests.
{RbsId}: If remote blob storage is enabled and the document's content is contained in a remote data store, then this MUST be the remote blob storage identifier for the document's content. If remote blob storage is disabled or the document's content is not contained in a remote data store, then this MUST contain NULL. For additional information regarding remote blob storage, see [MS-WSSO] section 2.1.2.3.8.
{Version}: An internal version counter incremented any time a change is made to this document, and used for internal conflict detection. This value MUST be set to the current internal version counter value for the document in the Docs View (section 2.2.7.4), except in the Document Version 1 Information and Content Result Set and the Document Version 2 Information and Content Result Set (section 3.1.5.21.16), where this value MUST be NULL.
{Id}: The document identifier (section 2.2.1.2) of this document.
{SetupPathVersion}: For a ghosted document, this governs the setup path location to which the SetupPath fragment is relative. This value MUST be NULL if the document does not exist, and is undefined for a document which was never ghosted.<14>
{SetupPath}: For a document that is now or once was ghosted, this parameter MUST contain the setup path fragment relative to the base setup path described by the SetupPathVersion value, where the content stream of this document can be found. In the case of a document which does not exist or a document which was never ghosted, this value MUST be NULL.
{Dirty}: A bit set to "1," indicating that this document MUST have dependency update processing performed before its document stream is returned to an external agent. This field's value is implementation-dependent if this document does not have a document stream, and MUST be ignored if the document does not have a document stream.
DocFlags: A Doc Flags (section 2.2.2.3) value describing the document. This value MUST be NULL if the document does not exist.
{IsHistoricalVersion}: MUST be 1.
{Level}: MUST be 1.
InternalVersion: An integer value specifying the implementation-related internal version number of this version of the document. This value MUST be set to the current internal version counter value for the document in the Docs View.