DocumentSet.ShareDocumentSet Method ()DocumentSet.ShareDocumentSet Method ()DocumentSet::ShareDocumentSet Method ()

Returns a new SharedDocumentSetSharedDocumentSetSharedDocumentSet which wraps the current document set..

Syntax

Public Function ShareDocumentSet() As SharedDocumentSet
public SharedDocumentSet ShareDocumentSet()
public:
SharedDocumentSet^ ShareDocumentSet()
 

Remarks

When reading a document during evaluation of an XQuery program, XPath expression or XSL transformation, the underlying DocumentSetDocumentSetDocumentSet will first be checked to see it already contains that document. If it does, it will be returned. Otherwise, the document will be read and placed in the SharedDocumentSetSharedDocumentSetSharedDocumentSet. Any document created during evaluation of the XQuery program, XPath expression or XSL transformation will reside in the SharedDocumentSetSharedDocumentSetSharedDocumentSet.

Using a private name table results in any names that are not in the static name table to be added to a separate private name table.

If a DocumentSetDocumentSetDocumentSet is supplied, then it will be wrapped in a SharedDocumentSetSharedDocumentSetSharedDocumentSet using the private name table.

This is euivalent to calling ShareDocumentSet (XmlNameTable)ShareDocumentSet (XmlNameTable)ShareDocumentSet (XmlNameTable^) with this instance's NameTableNameTableNameTable.