使用所提供的说明键、数据类型和资源名初始化 DescriptionResourceAttribute 类的新实例。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Sub New ( _
descriptionKey As String, _
type As Type, _
resourceName As String _
)
public DescriptionResourceAttribute(
string descriptionKey,
Type type,
string resourceName
)
参数
- descriptionKey
类型:System.String
在指定资源中的说明资源入口的键。
- type
类型:System.Type
标识包含资源的程序集的类型。
- resourceName
类型:System.String
该资源的根名称。
异常
异常 | 条件 |
---|---|
ArgumentNullException | 如果 type 为 nullnull 引用(在 Visual Basic 中为 Nothing) 或 descriptionKey 或 resourceName 为 nullnull 引用(在 Visual Basic 中为 Nothing) 或空字符串 ("")。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
DescriptionResourceAttribute 类