FileBufferingReadStream 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FileBufferingReadStream(Stream, Int32)
初始化 FileBufferingReadStream 的新執行個體。
public:
FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer)
參數
- memoryThreshold
- Int32
在記憶體中緩衝的大小上限。
適用於
FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>)
初始化 FileBufferingReadStream 的新執行個體。
public:
FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, Func<System::String ^> ^ tempFileDirectoryAccessor);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, Func<string> tempFileDirectoryAccessor);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * Func<string> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectoryAccessor As Func(Of String))
參數
- memoryThreshold
- Int32
在記憶體中緩衝的大小上限。
適用於
FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String)
初始化 FileBufferingReadStream 的新執行個體。
public:
FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, System::String ^ tempFileDirectory);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * string -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectory As String)
參數
- memoryThreshold
- Int32
在記憶體中緩衝的大小上限。
- tempFileDirectory
- String
要緩衝處理檔案的臨時目錄。
適用於
FileBufferingReadStream(Stream, Int32, Nullable<Int64>, Func<String>, ArrayPool<Byte>)
初始化 FileBufferingReadStream 的新執行個體。
public:
FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, Func<System::String ^> ^ tempFileDirectoryAccessor, System::Buffers::ArrayPool<System::Byte> ^ bytePool);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, Func<string> tempFileDirectoryAccessor, System.Buffers.ArrayPool<byte> bytePool);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * Func<string> * System.Buffers.ArrayPool<byte> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectoryAccessor As Func(Of String), bytePool As ArrayPool(Of Byte))
參數
- memoryThreshold
- Int32
在記憶體中緩衝的大小上限。
要使用的 ArrayPool<T>。
適用於
FileBufferingReadStream(Stream, Int32, Nullable<Int64>, String, ArrayPool<Byte>)
初始化 FileBufferingReadStream 的新執行個體。
public:
FileBufferingReadStream(System::IO::Stream ^ inner, int memoryThreshold, Nullable<long> bufferLimit, System::String ^ tempFileDirectory, System::Buffers::ArrayPool<System::Byte> ^ bytePool);
public FileBufferingReadStream (System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory, System.Buffers.ArrayPool<byte> bytePool);
new Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream : System.IO.Stream * int * Nullable<int64> * string * System.Buffers.ArrayPool<byte> -> Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream
Public Sub New (inner As Stream, memoryThreshold As Integer, bufferLimit As Nullable(Of Long), tempFileDirectory As String, bytePool As ArrayPool(Of Byte))
參數
- memoryThreshold
- Int32
在記憶體中緩衝的大小上限。
- tempFileDirectory
- String
要緩衝處理檔案的臨時目錄。
要使用的 ArrayPool<T>。