PackWebResponse.ContentLength Property


Gets the content length of the response.

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

public override long ContentLength { 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