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