DocumentSet Constructor (InputSettings, XmlResolver, XmlReaderSettings)DocumentSet Constructor (InputSettings, XmlResolver, XmlReaderSettings)DocumentSet Constructor (InputSettings^, XmlResolver^, XmlReaderSettings^)

Syntax

Public Sub New ( _
    inputSettings As InputSettings, _
    resolver As System.Xml.XmlResolver, _
    settings As System.Xml.XmlReaderSettings _
)
public DocumentSet(
    InputSettings inputSettings,
    System.Xml.XmlResolver resolver,
    System.Xml.XmlReaderSettings settings
)
public:
DocumentSet(
    InputSettings^ inputSettings, 
    System.Xml::XmlResolver^ resolver, 
    System.Xml::XmlReaderSettings^ settings
)
 

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptionThe NameTableNameTableNameTable of settings is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionsettings is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

resolver is used to resolve all resources. Any documents are first resolved as resources, and then parsed with an XmlReaderXmlReaderXmlReader initialized using the XmlReaderSettingsXmlReaderSettingsXmlReaderSettings provided.

The filters to be applied when reading source documents, or null a null reference (Nothing in Visual Basic) nullptr if no filters should be applied.

If the unparsed-text function is not used then consider constructing the DocumentSetDocumentSetDocumentSet with an XmlReaderDocumentResolverXmlReaderDocumentResolverXmlReaderDocumentResolver and no IResourceResolverIResourceResolverIResourceResolver to avoid caching the raw contents of every document retrieved.

This is equivalent to constructing the document set with a UnparsedTextDocumentResolverUnparsedTextDocumentResolverUnparsedTextDocumentResolver and a XmlResourceResolverXmlResourceResolverXmlResourceResolver for the document and resource resolvers respectively.

The NameTableNameTableNameTable property is set to that of the settings instance, which must not be null a null reference (Nothing in Visual Basic) nullptr.