Share via


DisplayCategoryKeyAttribute.GetDefaultKey Method (Type)

Gets the default key using the specified Type object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function GetDefaultKey ( _
    type As Type _
) As String
'Usage
Dim instance As DisplayCategoryKeyAttribute 
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

Parameters

  • type
    Type: System.Type
    The Type object that is used to get the default key.

Return Value

Type: System.String
The key that is used to look up a localized type category in a default resource file.

See Also

Reference

DisplayCategoryKeyAttribute Class

GetDefaultKey Overload

Microsoft.SqlServer.Management.Sdk.Sfc Namespace