ContentLength Property

PackWebResponse.ContentLength Property


Gets the content length of the response.

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

Public Overrides ReadOnly Property ContentLength As Long

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
© 2015 Microsoft