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

适用于