When do we need to use [Browsable(true)]?

前端 未结 9 1173
清歌不尽
清歌不尽 2021-01-01 13:06

When do we need to use [Browsable(true)]?

EDIT (by SLaks): He\'s asking (I assume) why one would need to pass true as the

9条回答
  •  没有蜡笔的小新
    2021-01-01 13:32

    One occassion when this attribute becomes important is during WebPart development for Sharepoint. In this scenario you are providing meta information for Sharepoint to determine whether your webpart should be viewable for selection etc. There are other similiar attributes such as Category and FriendlyName etc which are also taken into account.

    See the following for examples:

    Creating a web part with custom properties

    And another with decent images of the sharepoint webpart editor which reflects your attributes:

    Making Sharepoint WebParts interact

提交回复
热议问题