SerializeAbsoluteContext 類別

定義

指定序列化程式應處理預設值。 此類別無法獲得繼承。

public ref class SerializeAbsoluteContext sealed
public sealed class SerializeAbsoluteContext
type SerializeAbsoluteContext = class
Public NotInheritable Class SerializeAbsoluteContext
繼承
SerializeAbsoluteContext

備註

ComponentSerializationService支持絕對串行化。 這表示,不會只串行化與對象預設值不同的值,而是串行化所有值,允許將值重設為可能已經初始化的物件預設值。 當元件串行化服務想要向物件指出此行為 CodeDomSerializer 時,它會將物件放在 SerializeAbsoluteContext 內容堆疊上。 此內容中的成員可能是 null,表示所有成員都已串行化,或者可能表示目前只串行化特定成員。

建構函式

SerializeAbsoluteContext()

初始化 SerializeAbsoluteContext 類別的新執行個體。

SerializeAbsoluteContext(MemberDescriptor)

使用繫結至特定成員的選項,初始化 SerializeAbsoluteContext 類別的新執行個體。

屬性

Member

取得這個內容繫結至的成員。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ShouldSerialize(MemberDescriptor)

取得值,指出是否在這個內容中序列化指定的成員。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱