PropertyIdentifierCollection.InsertItem 方法
在集合中插入新的屬性識別項。
命名空間: Microsoft.Windows.Design.Model
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Protected Overrides Sub InsertItem ( _
index As Integer, _
item As PropertyIdentifier _
)
protected override void InsertItem(
int index,
PropertyIdentifier item
)
protected:
virtual void InsertItem(
int index,
PropertyIdentifier item
) override
abstract InsertItem :
index:int *
item:PropertyIdentifier -> unit
override InsertItem :
index:int *
item:PropertyIdentifier -> unit
protected override function InsertItem(
index : int,
item : PropertyIdentifier
)
參數
- index
型別:System.Int32
要插入 item 的索引位置。
- item
型別:Microsoft.Windows.Design.Metadata.PropertyIdentifier
要插入的屬性識別項。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | item 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
ArgumentException | item 已存在於集合中。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
PropertyIdentifierCollection 類別
Microsoft.Windows.Design.Model 命名空間