AddIn.Connected Property

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

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

Syntax

'Declaration
Property Connected As Boolean
bool Connected { get; set; }
property bool Connected {
    bool get ();
    void set (bool value);
}
abstract Connected : bool with get, set
function get Connected () : boolean 
function set Connected (value : boolean)

Property Value

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

Remarks

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

Examples

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

.NET Framework Security

See Also

Reference

AddIn Interface

EnvDTE Namespace