DescriptionAttribute(String) Konstruktor

Definition

Initierar en ny instans av DescriptionAttribute klassen.

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

Parametrar

desc
String

Beskrivningen av sammansättningen (programmet), komponenten, metoden eller gränssnittet.

Exempel

Följande kodexempel visar hur konstruktorn används.

[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.")>

Gäller för