Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
- 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.