PropertyIdentifierCollection.SetItem Method
Sets the property identifier at the specified index.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected Overrides Sub SetItem ( _
index As Integer, _
item As PropertyIdentifier _
)
protected override void SetItem(
int index,
PropertyIdentifier item
)
protected:
virtual void SetItem(
int index,
PropertyIdentifier item
) override
abstract SetItem :
index:int *
item:PropertyIdentifier -> unit
override SetItem :
index:int *
item:PropertyIdentifier -> unit
protected override function SetItem(
index : int,
item : PropertyIdentifier
)
Parameters
- index
Type: System.Int32
The index that will be set to item.
- item
Type: Microsoft.Windows.Design.Metadata.PropertyIdentifier
The property identifier to set.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item is nulla null reference (Nothing in Visual Basic). |
ArgumentException | item already exists in the collection. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
PropertyIdentifierCollection Class
Microsoft.Windows.Design.Model Namespace