DescriptionResourceAttribute 建構函式 (String, Type)
使用指定的描述索引鍵和型別,初始化 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 _
)
public DescriptionResourceAttribute(
string descriptionKey,
Type type
)
參數
- descriptionKey
類型:System.String
在指定的資源中的描述資源項目的索引鍵。
- type
類型:System.Type
型別,其識別內含資源的組件。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | type 為 nullnull 參考 (即 Visual Basic 中的 Nothing),或 descriptionKey 為 nullnull 參考 (即 Visual Basic 中的 Nothing)或空字串 ("")。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
DescriptionResourceAttribute 類別