共用方式為


DescriptionResourceAttribute 建構函式 (String, Type, String)

初始化新的執行個體的DescriptionResourceAttribute藉由使用指定的描述索引鍵、 類型及資源名稱的類別。

命名空間:  Microsoft.VisualStudio.Modeling.Design
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.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
    用來識別包含資源的組件的型別。

例外狀況

例外狀況 條件
ArgumentNullException

typeis nullnull 參考 (即 Visual Basic 中的 Nothing), or descriptionKey or resourceName is nullnull 參考 (即 Visual Basic 中的 Nothing) or the empty string ("").

.NET Framework 安全性

請參閱

參考

DescriptionResourceAttribute 類別

DescriptionResourceAttribute 多載

Microsoft.VisualStudio.Modeling.Design 命名空間