XmlDocExtensions.Inspect Method
- Namespace
- Kampute.DocToolkit.XmlDoc
- Assembly
- Kampute.DocToolkit.dll
Definition
Inspects the XML documentation entry for missing or incomplete elements based on the provided member and inspection options.
public static IEnumerable<XmlDocInspectionIssue> Inspect(
this XmlDocEntry doc,
IMember member,
XmlDocInspectionOptions options = XmlDocInspectionOptions.Required,
Func<IMember, XmlDocEntry> overloadDocProvider = null)Parameters
docXmlDocEntry- The XML documentation entry to inspect.
memberIMember- The member whose documentation is being inspected.
optionsXmlDocInspectionOptions optional- The options to determine which tags to inspect.
overloadDocProviderFunc<IMember, XmlDocEntry> optional- An optional function to provide documentation for overload members when checking overload documentation.
Returns
- IEnumerable<XmlDocInspectionIssue>
- An enumerable of XmlDocInspectionIssue instances representing the issues found.
Exceptions
- ArgumentNullException
- Thrown when
docormemberisnull.

This method inspects the XML documentation entry for completeness based on the member's characteristics and the specified inspection options.
The following elements are inspected based on theoptionsflags:<summary>tag.<remarks>tag with non-empty content.<example>tag with non-empty content.<typeparam>tag with non-empty description.<param>tag with non-empty description.<returns>tag with non-empty description for members with return values.<value>tag with non-empty content.<exception>tags have non-empty descriptions.<permission>tags have non-empty descriptions.<event>tags have non-empty descriptions.<threadsafety>tag with either non-empty content or having values for at least one ofinstanceandstaticattributes.<seealso>tags referencing hyperlinks have descriptive text.<overloads>tag. If the tag is missing or empty, uses the providedoverloadDocProviderfunction to check documentation of each overload. If the<overloads>tag is missing or empty in all overloads, an issue is reported. IfoverloadDocProviderisnull, only the presence of the<overloads>tag in the current member is checked.