PackageProperties.ContentType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.0
Return to top
Show: