مفقودة CommandBars.Item
-
13-11-2019 - |
سؤال
باستخدام Microsoft.VisualStudio.CommandBars؛
في العينة التالية.
var applicationObject = (DTE2)application;
var allCommands = ((CommandBars)applicationObject.CommandBars);
سؤال بسيط:لماذا أنا في عداد المفقودين allComands.Item[]
?
المحلول
حاول استخدام المفهرس مباشرة:
allCommands["..."]
لا تنتمي إلى StackOverflow