DisplayDescriptionKeyAttribute.GetDefaultKey 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetDefaultKey(FieldInfo) |
用于在默认资源文件中查找本地化属性类别的键 |
| GetDefaultKey(PropertyInfo) |
用于在默认资源文件中查找本地化属性类别的键 |
| GetDefaultKey(Type) |
用于在默认资源文件中查找本地化属性类别的键 |
GetDefaultKey(FieldInfo)
用于在默认资源文件中查找本地化属性类别的键
public string GetDefaultKey(System.Reflection.FieldInfo field);
abstract member GetDefaultKey : System.Reflection.FieldInfo -> string
override this.GetDefaultKey : System.Reflection.FieldInfo -> string
Public Function GetDefaultKey (field As FieldInfo) As String
参数
- field
- FieldInfo
返回
适用于
GetDefaultKey(PropertyInfo)
用于在默认资源文件中查找本地化属性类别的键
public string GetDefaultKey(System.Reflection.PropertyInfo property);
abstract member GetDefaultKey : System.Reflection.PropertyInfo -> string
override this.GetDefaultKey : System.Reflection.PropertyInfo -> string
Public Function GetDefaultKey (property As PropertyInfo) As String
参数
- property
- PropertyInfo