Constructor DocumentFormatDescriptor
DocumentFormatDescriptor(string, string, string, params string[])
Initializes a descriptor.
public DocumentFormatDescriptor(string name, string displayName, string contentType, params string[] fileExtensions)
Parameters
namestringThe stable format identifier, for example "docx".
displayNamestringThe human-readable name, for example "Office Open XML WordprocessingML".
contentTypestringThe MIME content type.
fileExtensionsstring[]The file extensions, with or without leading dots.
Exceptions
- ArgumentNullException
Any argument is null.
- ArgumentException
No extensions were supplied, or an extension is empty.