Visual Studio 2013
Gets or sets a value indicating whether an add-in is loaded and connected.
Assembly: EnvDTE (in EnvDTE.dll)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.