class MyControl : System.Web.UI.UserControl { // Attribute to prevent property from showing in VS Property Window? public bool SampleProperty { get; set; } // other stuff }
using System.ComponentModel; [Browsable(false)] public bool SampleProperty { get; set; }
在VB.net中,这个will be:
<System.ComponentModel.Browsable(False)>