Proprietà AddIn.Connected

Ottiene o imposta un valore che indica se un componente aggiuntivo viene caricato e connesso.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
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)

Valore proprietà

Tipo: System.Boolean
Un valore booleano che indica se un componente aggiuntivo viene caricato e connesso.

Note

Restituisce true se un componente aggiuntivo viene caricato e connesso, false in caso contrario.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AddIn Interfaccia

Spazio dei nomi EnvDTE