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).
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om