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.Int32The index of the role to replace.
item
Type: TThe role that will replace the current role at the specified index.
Permissions
- 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
LinkedElementCollection<T> Class