Метод DisplayNameKeyAttribute.GetDefaultKey (FieldInfo)
Gets the default key using the specified FieldInfo object.
Пространство имен: Microsoft.SqlServer.Management.Sdk.Sfc
Сборка: Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Синтаксис
'Декларация
Public Function GetDefaultKey ( _
field As FieldInfo _
) As String
'Применение
Dim instance As DisplayNameKeyAttribute
Dim field As FieldInfo
Dim returnValue As String
returnValue = instance.GetDefaultKey(field)
public string GetDefaultKey(
FieldInfo field
)
public:
virtual String^ GetDefaultKey(
FieldInfo^ field
) sealed
abstract GetDefaultKey :
field:FieldInfo -> string
override GetDefaultKey :
field:FieldInfo -> string
public final function GetDefaultKey(
field : FieldInfo
) : String
Параметры
- field
Тип: System.Reflection.FieldInfo
The FieldInfo object that is used to get the default key.
Возвращаемое значение
Тип: System.String
The key that is used to look up a localized field name in a default resource file.