GetDefaultKey Método (FieldInfo)
Gets the default key using the specified FieldInfo object. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
Public Function GetDefaultKey ( _
field As FieldInfo _
) As String
'Uso
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
Parámetros
- field
Tipo: System.Reflection. . :: . .FieldInfo
The FieldInfo object that is used to get the default key.
Valor devuelto
Tipo: System. . :: . .String
The key that is used to look up a localized field name in a default resource file.