Redigera

Dela via


MemberCodeDomSerializer.ShouldSerialize Method

Definition

Determines if the given member should be serialized.

public:
 abstract bool ShouldSerialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ value, System::ComponentModel::MemberDescriptor ^ descriptor);
public abstract bool ShouldSerialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value, System.ComponentModel.MemberDescriptor descriptor);
abstract member ShouldSerialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * System.ComponentModel.MemberDescriptor -> bool
Public MustOverride Function ShouldSerialize (manager As IDesignerSerializationManager, value As Object, descriptor As MemberDescriptor) As Boolean

Parameters

manager
IDesignerSerializationManager

The serialization manager to use for serialization.

value
Object

The object to which the member is bound.

descriptor
MemberDescriptor

The descriptor of the member to serialize.

Returns

true, if the member described by descriptor should be serialized; otherwise, false.

Remarks

This method returns true if the given member descriptor should be serialized, or false if there is no need to serialize the member.

Applies to

See also