DisplayMetadata.EnumGroupedDisplayNamesAndValues 属性

定义

获取 中UnderlyingOrModelType所有Enum值的有序显示名称和分组显示名称和值。 请参阅 EnumGroupedDisplayNamesAndValues

public:
 property System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::AspNetCore::Mvc::ModelBinding::EnumGroupAndName, System::String ^>> ^ EnumGroupedDisplayNamesAndValues { System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::AspNetCore::Mvc::ModelBinding::EnumGroupAndName, System::String ^>> ^ get(); void set(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::AspNetCore::Mvc::ModelBinding::EnumGroupAndName, System::String ^>> ^ value); };
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>> EnumGroupedDisplayNamesAndValues { get; set; }
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>>? EnumGroupedDisplayNamesAndValues { get; set; }
member this.EnumGroupedDisplayNamesAndValues : seq<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName, string>> with get, set
Public Property EnumGroupedDisplayNamesAndValues As IEnumerable(Of KeyValuePair(Of EnumGroupAndName, String))

属性值

适用于