Table of Contents

Constructor DocumentFormatDescriptor

Namespace
DocWright.Core.Formats
Assembly
DocWright.Core.dll

DocumentFormatDescriptor(string, string, string, params string[])

Initializes a descriptor.

public DocumentFormatDescriptor(string name, string displayName, string contentType, params string[] fileExtensions)

Parameters

name string

The stable format identifier, for example "docx".

displayName string

The human-readable name, for example "Office Open XML WordprocessingML".

contentType string

The MIME content type.

fileExtensions string[]

The file extensions, with or without leading dots.

Exceptions

ArgumentNullException

Any argument is null.

ArgumentException

No extensions were supplied, or an extension is empty.