DisplayAttribute.GetDescription Metódus

Definíció

A tulajdonság értékét Description adja vissza.

public:
 System::String ^ GetDescription();
public string GetDescription();
member this.GetDescription : unit -> string
Public Function GetDescription () As String

Válaszok

Ha a ResourceType honosított leírás meg van adva, és a Description tulajdonság egy erőforráskulcsot jelöl, ellenkező esetben a Description tulajdonság nem honosított értéke.

Kivételek

A ResourceType tulajdonság és a Description tulajdonság inicializálva van, de a tulajdonsághoz nem található olyan nyilvános statikus tulajdonság, amelynek neve megegyezik az ResourceTypeDescription értékkel.

Megjegyzések

A Description tulajdonságot általában az ezzel az attribútummal jegyzett tulajdonság elemleírásaként használják.

A következőre érvényes: