DisplayAttribute.ShortName 屬性

定義

取得或設定用於方格資料行標籤的值。

public:
 property System::String ^ ShortName { System::String ^ get(); void set(System::String ^ value); };
public string ShortName { get; set; }
public string? ShortName { get; set; }
member this.ShortName : string with get, set
Public Property ShortName As String

屬性值

用於方格資料行標籤的值。

備註

簡短名稱會當做系結至使用此屬性標註之屬性的UI元素的方格數據行標籤。 動態資料Insert.aspx和Edit.aspx頁面範本會針對欄位標籤使用 ShortName 。 如果已指定屬性,ResourceType而且屬性代表資源索引鍵,ShortName這個屬性會傳回 的當地語系化字串ResourceTypeResourceType如果尚未指定屬性,或ShortName屬性不是資源索引鍵,則此屬性會傳回非本地化字串。

適用於