PackWebResponse.ContentLength Property


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

Gets the content length of the response.

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

override ContentLength : int64 with get

Property Value

Type: System.Int64

The content length, in bytes.


Checking this property on an actual Web request and matching response has performance implications because in some circumstances it requires that the whole response stream is read.

.NET Framework
Available since 3.0
Return to top