MemoryResponseElement.Length Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the size of the array that is referenced by the Buffer property.
public:
property long Length { long get(); };
public long Length { get; }
member this.Length : int64
Public ReadOnly Property Length As Long
The size of the array.
A MemoryResponseElement object that is created by ASP.NET is a fixed-size memory buffer that is created from a pool of memory buffers. As a result, the contents of a MemoryResponseElement object often do not completely fill the Buffer array. Typically only a part of the Buffer array will contain response data. Therefore, providers that serialize the Buffer array directly (instead of serializing the complete type that is being stored in the output cache) must use the Length property to determine how much of the Buffer array must be stored.
Өнім | Нұсқалар |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: