Share via


EditorBrowsableAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies that a property or method is viewable in an editor. This class cannot be inherited.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    System.ComponentModel..::..EditorBrowsableAttribute

Namespace:  System.ComponentModel
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Struct Or AttributeTargets.Enum Or AttributeTargets.Constructor Or AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Event Or AttributeTargets.Interface Or AttributeTargets.Delegate)> _
Public NotInheritable Class EditorBrowsableAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate)]
public sealed class EditorBrowsableAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Struct|AttributeTargets::Enum|AttributeTargets::Constructor|AttributeTargets::Method|AttributeTargets::Property|AttributeTargets::Field|AttributeTargets::Event|AttributeTargets::Interface|AttributeTargets::Delegate)]
public ref class EditorBrowsableAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate)>]
type EditorBrowsableAttribute =  
    class
        inherit Attribute
    end
public final class EditorBrowsableAttribute extends Attribute

The EditorBrowsableAttribute type exposes the following members.

Constructors

  Name Description
Public method EditorBrowsableAttribute() () () () Initializes a new instance of the EditorBrowsableAttribute class.
Public method EditorBrowsableAttribute(EditorBrowsableState) Initializes a new instance of the EditorBrowsableAttribute class with the specified state.

Top

Properties

  Name Description
Public property State Gets the browsable state of the property or method.

Top

Methods

  Name Description
Public method Equals Determines whether the value of the given object is equal to the current object. (Overrides Object. . :: . .Equals(Object).)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.ComponentModel Namespace