DocumentSet.ShareDocumentSet Method (XmlNameTable)DocumentSet.ShareDocumentSet Method (XmlNameTable)DocumentSet::ShareDocumentSet Method (XmlNameTable^)

Returns a new SharedDocumentSetSharedDocumentSetSharedDocumentSet which wraps the current document set and uses the specified XmlNameTableXmlNameTableXmlNameTable.

Syntax

Public Function ShareDocumentSet( _
    nameTable As System.Xml.XmlNameTable _
) As SharedDocumentSet
public SharedDocumentSet ShareDocumentSet(
    System.Xml.XmlNameTable nameTable
)
public:
SharedDocumentSet^ ShareDocumentSet(
    System.Xml::XmlNameTable^ nameTable
)
 

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.