Export (0) Print
Expand All

AddIn.Connected Property

Gets or sets a value indicating whether an add-in is loaded and connected.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

bool Connected { get; set; }

Property Value

Type: System.Boolean
A Boolean value indicating whether an add-in is loaded and connected.

Returns true if an add-in is loaded and connected, false if otherwise.

Sub ConnectedExample()
   ' Set object references.
   Dim addincoll As AddIns
   Dim addinobj As AddIn
   
   addincoll = DTE.AddIns
   addinobj = addincoll.Item(1)

   ' Connect the add-in if it is not already connected
   ' and list its SatelliteDLLPath and Guid.
   If addinobj.Connected = False Then
      addinobj.Connected = True
   End If
   MsgBox("Satellite DLL Path: " & addinobj.SatelliteDllPath)
   MsgBox("DLL GUID: " & addinobj.Guid)
End Sub

Show:
© 2014 Microsoft