This documentation is archived and is not being maintained.

PackWebRequest.GetRequestStream Method

Do not use—GetRequestStream is not supported by PackWebRequest.

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

public override Stream GetRequestStream()
You cannot use methods in XAML.

Return Value

Type: System.IO.Stream
If GetRequestStream is called, a NotSupportedException is thrown.

ExceptionCondition
NotSupportedException

Occurs on any call to GetRequestStream. The pack URI protocol does not support writing.

GetRequestStream exists to implement the contract required by the abstract base class. The pack URI protocol does not support writing.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: