This documentation is archived and is not being maintained.

Connected Property

Visual Studio .NET 2003

Returns a value indicating whether an Add-in is loaded and connected.

[Visual Basic .NET]
Public Property Connected() As Boolean
[Visual Basic 6]
Property Get Connected() As Boolean
Property Let Connected( _
   ByVal NewValue As Boolean _
HRESULT __stdcall get_Connected(
   /* [out, retval] */ VARIANT_BOOL* retVal
HRESULT __stdcall put_Connected(
   /* [in] */ VARIANT_BOOL NewValue
public bool Connected {get; set;}
[JScript .NET]
public function get Connected() : Boolean
public function set Connected(
   NewValue : Boolean


Represents whether an Add-in is loaded and connected.

Return Value

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's 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

See Also

Applies To: AddIn Object