Bagikan melalui


DescriptionAttribute(String) Konstruktor

Definisi

Menginisialisasi instans baru kelas DescriptionAttribute.

public:
 DescriptionAttribute(System::String ^ desc);
public DescriptionAttribute (string desc);
new System.EnterpriseServices.DescriptionAttribute : string -> System.EnterpriseServices.DescriptionAttribute
Public Sub New (desc As String)

Parameter

desc
String

Deskripsi rakitan (aplikasi), komponen, metode, atau antarmuka.

Contoh

Contoh kode berikut menunjukkan penggunaan konstruktor ini.

[assembly: Description("A system for ensuring that the correct account "
                       "balance is stored after a transaction.")];
[assembly: Description("A system for ensuring that the correct account balance is stored after a transaction.")]

<Assembly: Description("A system for ensuring that the correct account balance is stored after a transaction.")>

Berlaku untuk