共用方式為


StreamingContext 結構

定義

描述指定串行化數據流的來源和目的地,並提供額外的呼叫端定義內容。

public value class StreamingContext
public struct StreamingContext
public readonly struct StreamingContext
[System.Serializable]
public struct StreamingContext
[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
繼承
StreamingContext
屬性

備註

表示格式化器所使用的位元來源或目的地。 帶有代理或實作 ISerializable 的類別,可以根據串流上下文中儲存的資訊序列化或忽略欄位和值。 例如,若將屬性設定為 System.Runtime.Serialization.StreamingContextStates.CrossProcess,視窗 handle 仍然有效。State

建構函式

名稱 Description
StreamingContext(StreamingContextStates, Object)
已淘汰.

初始化一個以特定上下文狀態及額外資訊的新類別實例 StreamingContext

StreamingContext(StreamingContextStates)
已淘汰.

初始化該類別的新實例 StreamingContext ,並以特定上下文狀態。

屬性

名稱 Description
Context

會獲得額外上下文中指定的上下文。

State
已淘汰.

取得傳輸資料的來源或目的地。

方法

名稱 Description
Equals(Object)

判斷兩個 StreamingContext 實例是否包含相同值。

GetHashCode()

回傳此物件的雜湊碼。

適用於

另請參閱