Uredi

Deli z drugimi prek


SerializeAbsoluteContext Class

Definition

Specifies that serializers should handle default values. This class cannot be inherited.

public ref class SerializeAbsoluteContext sealed
public sealed class SerializeAbsoluteContext
type SerializeAbsoluteContext = class
Public NotInheritable Class SerializeAbsoluteContext
Inheritance
SerializeAbsoluteContext

Remarks

The ComponentSerializationService supports absolute serialization. This means that instead of serializing only values that differ from an object's default values, all values are serialized, allowing values to be reset to their defaults for objects that may have already been initialized. When a component serialization service wishes to indicate this behavior to CodeDomSerializer objects, it will place a SerializeAbsoluteContext object on the context stack. The member in this context may be null, to indicate that all members are serialized, or it can indicate that only a specific member is being serialized at this time.

Constructors

SerializeAbsoluteContext()

Initializes a new instance of the SerializeAbsoluteContext class.

SerializeAbsoluteContext(MemberDescriptor)

Initializes a new instance of the SerializeAbsoluteContext class with the option of binding to a specific member.

Properties

Member

Gets the member to which this context is bound.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerialize(MemberDescriptor)

Gets a value indicating whether the given member should be serialized in this context.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also