Share via


FriendlyNameAttribute class

Especifica a legenda exibida no painel de propriedade para a propriedade personalizada da Web Part. Se esse atributo não for especificado, o nome da propriedade real será exibido no painel de propriedade.

Inheritance hierarchy

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

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
<AttributeUsageAttribute(AttributeTargets.Property)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class FriendlyNameAttribute _
    Inherits Attribute
'Uso
Dim instance As FriendlyNameAttribute
[AttributeUsageAttribute(AttributeTargets.Property)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class FriendlyNameAttribute : Attribute

Comentários

Os atributos que determinam a legenda que é exibida para uma propriedade personalizada são aplicados na seguinte ordem. Se o atributo ResourcesAttribute não for especificado, é usado o valor do atributo FriendlyNameAttribute . Se o atributo FriendlyNameAttribute não for especificado, o nome da propriedade real é usado.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Ver também

Referência

FriendlyNameAttribute members

Microsoft.SharePoint.WebPartPages namespace