PackWebRequest.ContentType Property

Definition

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).

Applies to