DisplayAttribute.GetGroupName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳該房產的價值 GroupName 。
public:
System::String ^ GetGroupName();
public string GetGroupName();
member this.GetGroupName : unit -> string
Public Function GetGroupName () As String
傳回
若已初始化,則用於 UI GroupName 中欄位分組的值;否則 。 null 若 ResourceType 已指定屬性且 GroupName 該屬性代表資源鍵,則回傳一個局部化字串;否則回傳非本地化字串。
例外狀況
屬性和ResourceTypeGroupName屬性都已設定,但在 中找不到GroupName與該值相符ResourceType的公開靜態屬性。