IDTCommandTarget الواجهة

Allows you إلى إنشاء named الأوامر. You must implement this واجهة إلى مؤشر جديد named الأوامر.

مساحة الاسم:  EnvDTE
التجميع:  EnvDTE (في EnvDTE.dll)

بناء الجملة

'إقرار
<GuidAttribute("7EF39A3E-590D-4879-88D4-C9BE5BCFD92E")> _
Public Interface IDTCommandTarget
[GuidAttribute("7EF39A3E-590D-4879-88D4-C9BE5BCFD92E")]
public interface IDTCommandTarget
[GuidAttribute(L"7EF39A3E-590D-4879-88D4-C9BE5BCFD92E")]
public interface class IDTCommandTarget
[<GuidAttribute("7EF39A3E-590D-4879-88D4-C9BE5BCFD92E")>]
type IDTCommandTarget =  interface end
public interface IDTCommandTarget

ملاحظات

The IDTCommandTarget واجهة allows you إلى implement named الأوامر في the بيئة. It also allows you إلى define the حالة of a الأمر أو ينفذ it.

If you Enter الزر a الأمر that was تمت الإضافة مع the AddNamedCommand أسلوب إلى the الأمر نافذة, the الأمر نافذة أول uses the IDTCommandTarget واجهة's QueryStatus أسلوب إلى determine if the الأمر هو ممكّن. The same also applies if you يتصل the ExecuteCommand أسلوب.

If an إضافة-في implements this واجهة في addition إلى IDTExtensibility2, then الأمر execution هو routed directly إلى this واجهة for named الأوامر تاريخ الإنشاء بواسطة the إضافة-في.

This واجهة هو analogous إلى the IDTCommandTarget واجهة defined في the Win32 SDK, except that the معلمات of the أسلوب are تنفيذ تلقائي لـ OLE compliant.

راجع أيضًَا

المرجع

IDTCommandTarget الأعضاء

EnvDTE مساحة الاسم