Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PackWebResponse::ContentLength Property

 

Gets the content length of the response.

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

public:
property long long ContentLength {
	virtual long long get() override;
}

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:
© 2017 Microsoft