MemoryResponseElement(Byte[], Int64) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 MemoryResponseElement 類別的新執行個體。
public:
MemoryResponseElement(cli::array <System::Byte> ^ buffer, long length);
public MemoryResponseElement(byte[] buffer, long length);
new System.Web.Caching.MemoryResponseElement : byte[] * int64 -> System.Web.Caching.MemoryResponseElement
Public Sub New (buffer As Byte(), length As Long)
參數
- buffer
- Byte[]
一個包含輸出快取回應部分的位元組陣列。
- length
- Int64
陣列在 buffer中的大小。
例外狀況
buffer 是 null。
length 小於零或大於 的 buffer大小。
備註
的 buffer 值不一定是 null,儘管它可以是零長度的陣列。