Gets the default key using the specified Type object.
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Function GetDefaultKey ( _
type As Type _
) As String
'用途
Dim instance As DisplayNameKeyAttribute
Dim type As Type
Dim returnValue As String
returnValue = instance.GetDefaultKey(type)
public string GetDefaultKey(
Type type
)
public:
virtual String^ GetDefaultKey(
Type^ type
) sealed
abstract GetDefaultKey :
type:Type -> string
override GetDefaultKey :
type:Type -> string
public final function GetDefaultKey(
type : Type
) : String
參數
- type
型別:System.Type
The Type object that is used to get the default key.
傳回值
型別:System.String
The key that is used to look up a localized type name in a default resource file.