WebClient.AllowWriteStreamBuffering 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
取得或設定值,這個值表示是否要為 WebClient 執行個體緩衝處理寫入網際網路資源的資料。
public:
property bool AllowWriteStreamBuffering { bool get(); void set(bool value); };
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public bool AllowWriteStreamBuffering { get; set; }
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.AllowWriteStreamBuffering : bool with get, set
Public Property AllowWriteStreamBuffering As Boolean
若要啟用緩衝處理寫入網際網路資源的資料,則為 true
;若要停用緩衝處理,則為 false
。 預設為 true
。
- 屬性
AllowWriteStreamBuffering當 屬性為 true
時,數據會在記憶體中緩衝處理,以便更有效率地以較大的區塊將它寫入因特網資源。
產品 | 版本 (已淘汰) |
---|---|
.NET | (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9) |
.NET Framework | (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) |