Question

Utilisation de Microsoft.VisualStudio.CommandBars;

Dans l'échantillon suivant.

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

Question simple: pourquoi suis-je manquant allComands.Item[]?

Était-ce utile?

La solution

Essayez d'utiliser directement l'indexeur:

allCommands["..."]
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top