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
'Usage
Dim instance As AddIn
Dim value As Boolean
value = instance.Connected
instance.Connected = value
bool Connected { get; set; }
property bool Connected {
bool get ();
void set (bool value);
}
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
- 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.