在指定的索引以新角色替换角色。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Sub ReplaceAt ( _
index As Integer, _
item As T _
)
public void ReplaceAt(
int index,
T item
)
参数
- index
类型:System.Int32
要替换的角色的索引。
- item
类型:T
将在指定的索引处替换当前角色的角色。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。