語言

DescriptionAttribute(String) 建構函式

定義

初始化 DescriptionAttribute 類別的新執行個體。

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

參數

desc
String

組件(應用)、元件、方法或介面的描述。

範例

以下程式碼範例展示了此建構子的使用方式。

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

適用於