StreamingContext 結構
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
描述給定序列化資料流的來源和目的端,並且提供其他呼叫端定義的內容。
public value class StreamingContext
C#
public struct StreamingContext
C#
public readonly struct StreamingContext
C#
[System.Serializable]
public struct StreamingContext
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct StreamingContext
type StreamingContext = struct
[<System.Serializable>]
type StreamingContext = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StreamingContext = struct
Public Structure StreamingContext
- 繼承
- 屬性
指出格式器所使用的位來源或目的地。 具有 Surrogates 或 ISerializable 實作的類別可以根據串流內容中儲存的資訊來序列化或忽略欄位和值。 例如,如果 State 屬性設定為 System.Runtime.Serialization.StreamingContextStates.CrossProcess
,則視窗控制碼仍然有效。
Streaming |
已淘汰.
使用指定的內容狀態,初始化 StreamingContext 類別的新執行個體。 |
Streaming |
已淘汰.
使用指定的內容狀態和某些額外的資訊,初始化 StreamingContext 類別的新執行個體。 |
Equals(Object) |
判斷兩個 StreamingContext 執行個體是否具有相同的值。 |
Get |
傳回這個物件的雜湊程式碼。 |
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 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 Standard | 2.0, 2.1 |
UWP | 10.0 |