Export (0) Print
Expand All

PackWebRequest.ContentType Property

Gets or sets the Content-type HTTP header.

Namespace: System.IO.Packaging
Assembly: PresentationCore (in presentationcore.dll)

public override string ContentType { get; set; }
/** @property */
public String get_ContentType ()

/** @property */
public void set_ContentType (String value)

public override function get ContentType () : String

public override function set ContentType (value : String)

You cannot use this property in XAML.

Property Value

Contents of the header.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft