Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PackWebResponse::ContentType Property

 

Gets the Multipurpose Internet Mail Extensions (MIME) content type of the response stream's content. 

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

public:
property String^ ContentType {
	virtual String^ get() override;
}

Property Value

Type: System::String^

The MIME type of the stream's content.

If a request does not specify a part in the package, it returns the MIME type of the package.

Requests that specify a part in the package return one of the following:

  1. If the requested part contains a ContentType value, the ContentType value is returned.

  2. If the requested part contains no ContentType value but the stream name contains a recognized MIME extension type, the MIME type corresponding to the extension is returned.

  3. If the requested part does not contain a ContentType value nor a recognized MIME extension type, ContentType returns an empty string.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft