Some properties may be visible in the designer, but should not be
serialized. Alternatively, you may need to serialize the
Content of the property rather than its value (as
might be the case with a collection class). In these circumstances,
you should adorn the property with this attribute.
The standard visibility options are presented through the static
Content, Hidden, and
Visible members. The default is
Visible. You can also determine the
Visibility encapsulated in the attribute.
public sealed class DesignerSerializationVisibilityAttribute : Attribute {
// Public Constructors
public DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility visibility);
// Public Static Fields
public static readonly DesignerSerializationVisibilityAttribute Content; // =System.ComponentModel.DesignerSerializationVisibilityAttribute
public static readonly DesignerSerializationVisibilityAttribute Default; // =System.ComponentModel.DesignerSerializationVisibilityAttribute
public static readonly DesignerSerializationVisibilityAttribute Hidden; // =System.ComponentModel.DesignerSerializationVisibilityAttribute
public static readonly DesignerSerializationVisibilityAttribute Visible; // =System.ComponentModel.DesignerSerializationVisibilityAttribute
// Public Instance Properties
public DesignerSerializationVisibility Visibility{get; }
// Public Instance Methods
public override bool Equals(object obj); // overrides Attribute
public override int GetHashCode(); // overrides Attribute
public override bool IsDefaultAttribute(); // overrides Attribute
}