DocumentationContext Constructor
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Initializes a new instance of the DocumentationContext class.
public DocumentationContext(
IProgrammingLanguage language,
IDocumentAddressProvider addressProvider,
IXmlDocProvider contentProvider,
IDocumentFormatter contentFormatter,
IEnumerable<IAssembly> assemblies,
IEnumerable<ITopic> topics,
object metadata = null)Parameters
languageIProgrammingLanguage- The programming language of the codebase being documented.
addressProviderIDocumentAddressProvider- The provider responsible for resolving documentation URLs and file paths of elements.
contentProviderIXmlDocProvider- The provider responsible for finding documentation content of elements.
contentFormatterIDocumentFormatter- The object responsible for formatting the documentation content.
assembliesIEnumerable<IAssembly>- The assemblies that contain the types and members to document.
topicsIEnumerable<ITopic>- The top-level topics to incorporate into the documentation, including their subtopics.
metadataobject optional- Optional metadata to associate with the documentation context.
Exceptions
- ArgumentNullException
- Thrown when any of the parameters are
null. - ArgumentException
- Thrown when
topicscontains duplicate topic names.

contentFormatter,contentProvider,addressProvider, andmetadataobjects. If any of these objects implement IDisposable, they will be disposed of when the DocumentationContext is disposed.