AddIns الواجهة

يحتوي على الجميع إضافة-زر 'Ins' المذكورة في إضافة-في إدارة صندوق الحوار إذا كانت DTE.AddIns، أو كلها إضافة-تم تحميله وظائف بحل معين إذا كانوا ProjectSolution.AddIns.

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

بناء الجملة

'إقرار
<GuidAttribute("50590801-D13E-4404-80C2-5CA30A4D0EE8")> _
Public Interface AddIns _
    Inherits IEnumerable
[GuidAttribute("50590801-D13E-4404-80C2-5CA30A4D0EE8")]
public interface AddIns : IEnumerable
[GuidAttribute(L"50590801-D13E-4404-80C2-5CA30A4D0EE8")]
public interface class AddIns : IEnumerable
[<GuidAttribute("50590801-D13E-4404-80C2-5CA30A4D0EE8")>]
type AddIns =  
    interface
        interface IEnumerable
    end
public interface AddIns extends IEnumerable

ملاحظات

AddInالكائن بتوفير معلومات حول إضافة-في البعض إضافة-زر 'Ins'. فقط مسجل وظائف إضافية يمكن تمثيل على AddInالكائن.

The IDTExtensibility2 واجهة يحتوي على the OnAddInsUpdate أسلوب that occurs when the AddIns مجموعة هو محدث, unless the إضافة-في هو a الحل إضافة-في.

أمثلة

Sub AddInsExample()
   ' For this example to work correctly, there should be an add-in 
   ' available in the Visual Studio environment.
   ' Set object references.
   Dim addincoll As AddIns
   Dim addinobj As AddIn
   
   ' Register an add-in, check DTE add-in count before and after the 
   ' update.
   addincoll = DTE.AddIns
   MsgBox("AddIns collection parent name: " & addincoll.Parent.Name)
   MsgBox("Number of Add-ins: " & addincoll.Count)
   ' NOTE: Use regsvr32 for Visual C++, regasm for Visual Basic 
   ' and Visual C#. Also, the pathname used below is an example only.
   Shell("regasm F:\AddIns\RegExplore\Debug\regexplore.dll")
   addincoll.Update()
   MsgBox("Number of Add-ins: " & addincoll.Count)
   addinobj = addincoll.Item(1)
End Sub 

راجع أيضًَا

المرجع

AddIns الأعضاء

EnvDTE مساحة الاسم