Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为SharePoint自定义属性枚举设置友好名称?_Sharepoint_Sharepoint 2007_Moss - Fatal编程技术网

如何为SharePoint自定义属性枚举设置友好名称?

如何为SharePoint自定义属性枚举设置友好名称?,sharepoint,sharepoint-2007,moss,Sharepoint,Sharepoint 2007,Moss,我有一个带有自定义枚举属性的简单web部件(SharePoint将其呈现为下拉列表) 有没有办法为枚举值提供友好的名称 我尝试过System.ComponentModel.DescriptionAttribute,但它似乎不起作用。我还尝试了Microsoft.SharePoint.WebPartPages.FriendlyNameAttribute,但它无法应用于枚举值。我假设您正在使用ToolPart;为什么不直接连接您自己的下拉列表,而不是让sharepoint为您绑定枚举?我现在不是,我

我有一个带有自定义枚举属性的简单web部件(SharePoint将其呈现为下拉列表)

有没有办法为枚举值提供友好的名称


我尝试过System.ComponentModel.DescriptionAttribute,但它似乎不起作用。我还尝试了Microsoft.SharePoint.WebPartPages.FriendlyNameAttribute,但它无法应用于枚举值。

我假设您正在使用ToolPart;为什么不直接连接您自己的下拉列表,而不是让sharepoint为您绑定枚举?

我现在不是,我希望有一种不用自定义ToolPart即可完成的方法。不幸的是,我通常会把自己的toolpart连接到比文本框更复杂的任何Web部件配置UI上。是的,我想可能就是这样。谢谢你的确认。