PackWebRequest::ContentType Property
.NET Framework (current version)
Gets or sets the Content-type HTTP header.
Assembly: PresentationCore (in PresentationCore.dll)
public: property String^ ContentType { virtual String^ get() override; virtual void set(String^ value) override; }
Note that the pack URI protocol does not process information in the request other than the uniform resource identifier (URI). For most purposes (such as determining the type of POST information), there is no use for this property.
ContentType returns an empty string if the request resolves from the PackageStore cache.
The ContentType property is shared with the inner WebRequest (GetInnerRequest).
.NET Framework
Available since 3.0
Available since 3.0
Show: