FriendlyNameAttribute 类

指定 Web 部件的自定义属性属性窗格中显示的标题。如果不指定此属性,将在属性窗格中显示的实际属性名。

继承层次结构

System.Object
  System.Attribute
    Microsoft.SharePoint.WebPartPages.FriendlyNameAttribute

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Property)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class FriendlyNameAttribute _
    Inherits Attribute
用法
Dim instance As FriendlyNameAttribute
[AttributeUsageAttribute(AttributeTargets.Property)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class FriendlyNameAttribute : Attribute

备注

按以下顺序应用确定的自定义属性显示的标题的属性。如果未指定ResourcesAttribute属性,然后使用FriendlyNameAttribute属性的值。如果未指定FriendlyNameAttribute属性,然后使用实际属性名称。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

FriendlyNameAttribute 成员

Microsoft.SharePoint.WebPartPages 命名空间