共用方式為


FriendlyNameAttribute class

指定顯示在 [網頁組件的自訂屬性的 [屬性] 窗格中的標題。如果您不指定這個屬性,實際的屬性名稱會顯示在 [屬性] 窗格中。

Inheritance hierarchy

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

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

Syntax

'宣告
<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屬性,則會使用實際的屬性名稱。

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.

請參閱

參照

FriendlyNameAttribute members

Microsoft.SharePoint.WebPartPages namespace