PackWebRequest::GetResponse Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the response stream for the request.

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

virtual WebResponse^ GetResponse() override

Return Value

Type: System.Net::WebResponse^

The response stream for the request.

Per the signature of the base class, GetResponse returns value of type WebResponse. The return value it is actually of type PackWebResponse specific to the response of the pack URI protocol.

The Close method should be called when the application is finished with the WebResponse stream.

.NET Framework
Available since 3.0
Return to top