PackWebRequest.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 or sets the Content-type
HTTP header.
public:
virtual property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
public override string ContentType { get; set; }
member this.ContentType : string with get, set
Public Overrides Property ContentType As String
Property Value
The contents of the header.
Remarks
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).