共用方式為


DisplayCategoryKeyAttribute.GetDefaultKey 方法 (PropertyInfo)

Gets the default key using the specified PropertyInfo object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  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 DisplayCategoryKeyAttribute 
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

參數

傳回值

型別:System.String
The key that is used to look up a localized property category in a default resource file.

請參閱

參考

DisplayCategoryKeyAttribute 類別

GetDefaultKey 多載

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