初始化 NewItemTypesAttribute 類別的新執行個體。
命名空間: Microsoft.Windows.Design.PropertyEditing
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Sub New ( _
type As Type _
)
public NewItemTypesAttribute(
Type type
)
public:
NewItemTypesAttribute(
Type^ type
)
new :
type:Type -> NewItemTypesAttribute
public function NewItemTypesAttribute(
type : Type
)
參數
- type
型別:System.Type
Type 物件,而這個屬性會將該物件宣告為有效的新項目型別。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentNullException | type 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.PropertyEditing 命名空間