LinkedElementCollection<T>.ReplaceAt Method

Replaces a role at a specified index with a new role.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Sub ReplaceAt ( _
    index As Integer, _
    item As T _
)
'使用
Dim instance As LinkedElementCollection
Dim index As Integer
Dim item As T

instance.ReplaceAt(index, item)
public void ReplaceAt(
    int index,
    T item
)
public:
void ReplaceAt(
    int index, 
    T item
)
public function ReplaceAt(
    index : int, 
    item : T
)

Parameters

  • index
    Type: System.Int32

    The index of the role to replace.

  • item
    Type: T

    The role that will replace the current role at the specified index.

Permissions

See Also

Reference

LinkedElementCollection<T> Class

LinkedElementCollection<T> Members

Microsoft.VisualStudio.Modeling Namespace