XmlDocExtensions.TryGetNamespaceDoc Method
- Namespace
- Kampute.DocToolkit.XmlDoc
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to retrieves the XML documentation for the specified namespace.
public static bool TryGetNamespaceDoc(this IXmlDocProvider xmlDocProvider, string ns, [NotNullWhen(true)] out XmlDocEntry doc)Parameters
xmlDocProviderIXmlDocProvider- The XML documentation provider to use.
nsstring- The namespace to retrieve the documentation for.
docXmlDocEntry- When this method returns, contains the XmlDocEntry representing the documentation for the namespace, if the documentation is available; otherwise,
null.
Returns
Exceptions
- ArgumentNullException
- Thrown when
xmlDocProviderisnull. - ArgumentException
- Thrown when
nsisnull, empty, or consists only of whitespace.
Remarks
The XML documentation for a namespace is represented by a special type named "NamespaceDoc" within the namespace.
