PackWebResponse.ContentType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the Multipurpose Internet Mail Extensions (MIME) content type of the response stream's content.
public:
virtual property System::String ^ ContentType { System::String ^ get(); };
public override string ContentType { get; }
member this.ContentType : string
Public Overrides ReadOnly Property ContentType As String
Property Value
The MIME type of the stream's content.
Remarks
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:
If the requested part contains a ContentType value, the ContentType value is returned.
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.
If the requested part does not contain a ContentType value nor a recognized MIME extension type, ContentType returns an empty string.