Udostępnij przez


Metoda DisplayDescriptionKeyAttribute.GetDefaultKey (Type)

Pobiera domyślny klucz za pomocą określonego Type obiektu.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Public Function GetDefaultKey ( _
    type As Type _
) As String
'Użycie
Dim instance As DisplayDescriptionKeyAttribute
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

Parametry

  • type
    Typ: System.Type
    Type Obiekt, który jest używany do uzyskiwania domyślnie klucz.

Wartość zwracana

Typ: System.String
Klucz używany do wyszukiwania opis typu zlokalizowanych w domyślnym pliku zasób.