LinkedElementCollection<T>.ReplaceAt Method

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

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

Syntax

'Declaration
Public Sub ReplaceAt ( _
    index As Integer, _
    item As T _
)
public void ReplaceAt(
    int index,
    T item
)
public:
void ReplaceAt(
    int index, 
    T item
)
member ReplaceAt : 
        index:int * 
        item:'T -> unit
public function ReplaceAt(
    index : int, 
    item : T
)

Parameters

  • index
    Type: Int32

    The index of the role to replace.

  • item
    Type: T

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

.NET Framework Security

See Also

Reference

LinkedElementCollection<T> Class

Microsoft.VisualStudio.Modeling Namespace