Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Browsable Property
Collapse the table of content
Expand the table of content

BrowsableAttribute.Browsable Property

Gets a value indicating whether an object is browsable.

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

public bool Browsable { get; }

Property Value

Type: System.Boolean
true if the object is browsable; otherwise, false.

The following example checks to see whether MyProperty is browsable. First the code gets the attributes for MyProperty by:

Then the code sets myAttribute to the value of the BrowsableAttribute in the AttributeCollection and checks whether the property is browsable.

// Gets the attributes for the property.
 AttributeCollection attributes = 

 // Checks to see if the property is browsable.
 BrowsableAttribute myAttribute = (BrowsableAttribute)attributes[typeof(BrowsableAttribute)];
 if(myAttribute.Browsable) {
    // Insert code here.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
© 2015 Microsoft