Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PackageProperties.ContentType Property

When overridden in a derived class, gets or sets a value that represents the type of content that is contained in the Package.

Namespace:  System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public abstract string ContentType { get; set; }

Property Value

Type: System.String
The type of content that is contained in the Package.

Example ContentType values include "Whitepaper", "Security Bulletin", and "Exam".

This ContentType property is distinct from Multipurpose Internet Mail Extensions (MIME) content types as defined in RFC 2616.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft