DisplayNameResourceAttribute 构造函数 (String, Type, String)

使用指定的显示名称键,类型和资源名初始化 DisplayNameResourceAttribute 类的新实例。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Sub New ( _
    displayNameKey As String, _
    type As Type, _
    resourceName As String _
)
public DisplayNameResourceAttribute(
    string displayNameKey,
    Type type,
    string resourceName
)

参数

  • displayNameKey
    类型:System.String
    在指定资源中的显示名称资源入口的键。
  • type
    类型:System.Type
    标识包含资源的程序集的类型。

异常

异常 条件
ArgumentNullException

type 是 nullnull 引用(在 Visual Basic 中为 Nothing),或者 displayNameKey 是 nullnull 引用(在 Visual Basic 中为 Nothing) 或空字符串 (""),或者 resourceName 是 nullnull 引用(在 Visual Basic 中为 Nothing) 或为空字符串 ("")。

.NET Framework 安全性

请参阅

参考

DisplayNameResourceAttribute 类

DisplayNameResourceAttribute 重载

Microsoft.VisualStudio.Modeling.Design 命名空间