获取与给定名称或索引的命令栏。
命名空间: Microsoft.VisualStudio.CommandBars
程序集: Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)
语法
声明
ReadOnly Default Property Item ( _
Index As Object _
) As CommandBar
CommandBar this[
Object Index
] { get; }
参数
- Index
类型:System.Object
名称或索引。
属性值
类型:Microsoft.VisualStudio.CommandBars.CommandBar
匹配名称或索引的 CommandBar 。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。