DocumentationContextExtensions.IsFormatSupported Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Determines whether the specified file format (based on the file extension) is supported by the content formatter of the documentation context.
public static bool IsFormatSupported(this IDocumentationContext context, string filePath)Parameters
contextIDocumentationContext- The documentation context to check for format support.
filePathstring- The file path to check for format support.
Returns
Exceptions
- ArgumentNullException
- Thrown when
contextorfilePathisnull. - ArgumentException
- Thrown when
filePathisnullor empty.
Remarks
This method checks if the file format specified by the file extension of the given file path is supported by the content formatter associated with the documentation context.
