문제

using Microsoft.VisualStudio.CommandBars;

In the following sample.

var applicationObject = (DTE2)application;
var allCommands = ((CommandBars)applicationObject.CommandBars);

Simple question: Why am I missing allComands.Item[]?

도움이 되었습니까?

해결책

Try using the indexer directly:

allCommands["..."]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top