PackWebResponse.ContentLength Property

 
System_CAPS_noteNote

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

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.

System_CAPS_noteNote

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
Show: