OpenXmlPart.ContentType Property

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Defines the content type (MIME type) of the content data in the part.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


Public Overridable ReadOnly Property ContentType As String
Dim instance As OpenXmlPart
Dim value As String

value = instance.ContentType
public virtual string ContentType { get; }

Property Value

Type: System.String

See Also


OpenXmlPart Class

OpenXmlPart Members

DocumentFormat.OpenXml.Packaging Namespace