共用方式為


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

適用於