Share via


DisplayNameKeyAttribute.GetDefaultKey メソッド (Type)

指定した Type オブジェクトを使用して既定のキーを取得します。このメンバーをコード内で直接参照しないでください。このメンバーは、SQL Server インフラストラクチャをサポートしています。

名前空間:  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
    既定のキーの取得に使用する Type オブジェクトです。

戻り値

型: System.String
既定のリソース ファイル内にあるローカライズされた型の名前の検索に使用するキーです。

関連項目

参照

DisplayNameKeyAttribute クラス

GetDefaultKey オーバーロード

Microsoft.SqlServer.Management.Sdk.Sfc 名前空間