DisplayNameKeyAttribute.GetDefaultKey 方法 (PropertyInfo)
Gets the default key using the specified PropertyInfo object
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public Function GetDefaultKey ( _
property As PropertyInfo _
) As String
用法
Dim instance As DisplayNameKeyAttribute
Dim property As PropertyInfo
Dim returnValue As String
returnValue = instance.GetDefaultKey(property)
public string GetDefaultKey(
PropertyInfo property
)
public:
virtual String^ GetDefaultKey(
PropertyInfo^ property
) sealed
abstract GetDefaultKey :
property:PropertyInfo -> string
override GetDefaultKey :
property:PropertyInfo -> string
public final function GetDefaultKey(
property : PropertyInfo
) : String
参数
- property
类型:System.Reflection.PropertyInfo
The PropertyInfo object that is used to get the default key.
返回值
类型:System.String
The key that is used to look up a localized property name in a default resource file.