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.
UnmanagedMemoryStream::Capacity Property
.NET Framework (current version)
Gets the stream length (size) or the total amount of memory assigned to a stream (capacity).
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ObjectDisposedException | The stream is closed. |
This property returns the capacity value provided to the constructor. If no capacity value was specified when the stream was initialized, this property returns the stream length.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: